Repository navigation
Label pull requests by release risk #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| name: Pull Request | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize, ready_for_review, labeled] | ||
|
|
||
| jobs: | ||
| pull-request: | ||
| uses: simpleanalytics/github-actions/.github/workflows/pull-request.yml@main | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| secrets: | ||
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | ||
|
Comment on lines
+10
to
+11
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a supported path for fork pull requests.
This workflow uses the
pull_requestevent. For fork pull requests, GitHub withholds non-GITHUB_TOKENsecrets and provides a read-only token.ANTHROPIC_API_KEYis therefore unavailable, and the token cannot apply labels, comments, or reviewer requests. This does not meet the objective of labeling every pull request. Add an explicit fallback or a trusted-event design that does not execute fork code with secrets. (docs.github.com)