There was an error while loading. Please reload this page.
1 parent 78c347a commit b2c61a2Copy full SHA for b2c61a2
1 file changed
.github/workflows/check-for-spammy-pr.yml …ithub/workflows/check-for-spammy-prs.yml.github/workflows/check-for-spammy-pr.yml renamed to .github/workflows/check-for-spammy-prs.yml
@@ -35,10 +35,11 @@ jobs:
35
});
36
37
const onlyDeletes = files.length > 0 && files.every(f => f.status === 'removed')
38
+ const emptyCommit = !files.length
39
const touchesTooMany = files.length > 10
40
41
// Close the PR and add the invalid label
- if (onlyDeletes || touchesTooMany) {
42
+ if (onlyDeletes || emptyCommit || touchesTooMany) {
43
await github.rest.issues.update({
44
owner: owner,
45
repo: repo,
0 commit comments