Skip to content

Commit 3614e6d

Browse files
committed
Fix mixed-better/worse not being picked up, fix GITHUB_TOKEN typo
1 parent 5f8f226 commit 3614e6d

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/examples.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
old: fixtures/file1_basic.txt
216216
new: fixtures/file4_added.txt
217217
mode: addition
218-
token: ${{ secrets.GITHUB }}
218+
token: ${{ secrets.GITHUB_TOKEN }}
219219
notify_issue: true
220220
notify_check: true
221221

@@ -228,6 +228,6 @@ jobs:
228228
old: fixtures/file1_basic.txt
229229
new: fixtures/file2_deleted.txt
230230
mode: addition
231-
token: ${{ secrets.GITHUB }}
231+
token: ${{ secrets.GITHUB_TOKEN }}
232232
notify_issue: true
233233
notify_check: true

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/processing.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ export const processDiff = (old: string, newPath: string, mode: Inputs.Mode, exp
4141
removed: 0,
4242
};
4343
diff.forEach(change => {
44+
const count = change.count ? change.count : 1;
4445
if (change.added) {
45-
counts.added += 1;
46+
counts.added += count;
4647
}
4748
if (change.removed) {
48-
counts.removed += 1;
49+
counts.removed += count;
4950
}
5051
});
5152

0 commit comments

Comments
 (0)