-
Notifications
You must be signed in to change notification settings - Fork 476
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
[CI] Chore: Only run actions for contributors #5739
[CI] Chore: Only run actions for contributors #5739
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5739 +/- ##
=======================================
Coverage 53.01% 53.01%
=======================================
Files 1101 1101
Lines 59079 59079
Branches 4809 4809
=======================================
Hits 31322 31322
Misses 27039 27039
Partials 718 718
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
3f13a3c
to
8ed4558
Compare
.github/workflows/auto-assign.yml
Outdated
const { exec } = require('child_process'); | ||
exec('npx @toshimaru/auto-author-assign'); |
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.
Running npx
via exec()
is error-prone since it won't properly propagate failures to the workflow. A more reliable approach is to use the GitHub Action directly with a conditional:
- uses: toshimaru/[email protected]
if: ${{ github.event.pull_request.author_association == 'MEMBER' ||
github.event.pull_request.author_association == 'OWNER' ||
github.event.pull_request.author_association == 'COLLABORATOR' }}
This ensures proper error handling and maintains the original functionality.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
8ed4558
to
04b278c
Compare
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the GitHub workflows for pull requests by adding conditions for author associations and expanding issue types. ### Detailed summary - In `.github/workflows/auto-assign.yml`, added checks to assign authors only if they are `MEMBER`, `OWNER`, or `COLLABORATOR`. - In `.github/workflows/issue.yml`, expanded the `types` to include `ready_for_review`. - Added logic to automatically pass checks for external contributors. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
04b278c
to
dc1e07b
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR updates GitHub Actions workflows to enhance pull request handling by adding conditions for author associations and expanding the issue types that trigger actions.
Detailed summary
In
.github/workflows/auto-assign.yml
:assign-author
job to check if the author is aMEMBER
,OWNER
, orCOLLABORATOR
.In
.github/workflows/issue.yml
:ready_for_review
.