-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: only run actions for thirdweb people
- Loading branch information
1 parent
9954b37
commit 8ed4558
Showing
2 changed files
with
29 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Auto Author Assign | |
|
||
on: | ||
pull_request: | ||
types: [ opened, reopened ] | ||
types: [ opened, reopened, ready_for_review ] | ||
|
||
permissions: | ||
pull-requests: write | ||
|
@@ -11,4 +11,19 @@ jobs: | |
assign-author: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: toshimaru/[email protected] | ||
- name: Check contributor status and assign author | ||
uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
const isInternalContributor = ['MEMBER', 'OWNER', 'COLLABORATOR'].includes( | ||
context.payload.pull_request.author_association | ||
); | ||
if (!isInternalContributor) { | ||
console.log('External contributor detected - skipping author assignment'); | ||
return; | ||
} | ||
// Use the auto-assign action only for internal contributors | ||
const { exec } = require('child_process'); | ||
exec('npx @toshimaru/auto-author-assign'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters