Skip to content

Commit

Permalink
chore: adjust merge contributors workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Sep 15, 2023
1 parent 0b75c66 commit 768bafb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/scripts/merge-all-contributors.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
module.exports = async ({ github, context }) => {
const creator = context.payload.sender.login;

if (creator.includes('allcontributors')) {
return;
}

const prNumber = context.payload.number;
const owner = context.payload.repository.owner.login;
const repo = context.payload.repository.name;
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/merge-all-contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- uses: actions/github-script@v6
with:
script: |
const script = require('../scripts/merge-all-contributors.js')
const script = require('./scripts/merge-all-contributors.js')
await script({ github, context });
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.angular
pnpm-lock.yaml
CHANGELOG.md
README.md

0 comments on commit 768bafb

Please sign in to comment.