-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(ci): label check #7659
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
fix(ci): label check #7659
Conversation
Signed-off-by: Aviv Keller <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (1)
.github/workflows/chromatic.yml:42
- GitHub pull_request_target events typically provide multiple labels as an array rather than a single label object. Consider verifying if 'github.event.label' exists as expected or updating the check to iterate over the labels array to ensure that the intended label is present.
github.event.label.name == 'github_actions:pull-request' &&
|
Lighthouse Results
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7659 +/- ##
==========================================
+ Coverage 74.54% 74.57% +0.02%
==========================================
Files 96 96
Lines 7673 7673
Branches 194 194
==========================================
+ Hits 5720 5722 +2
+ Misses 1951 1949 -2
Partials 2 2 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Hey, Codecov works :-) |
MattIPv4
left a comment
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.
merge_group is a trigger here, but the if is never going to let that happen?
It might be useful to have an explainer block for the triggers here, similar to what the old workflow this was pulled out of had?
|
I, for the most part, took this chunk directly out of that workflow, so some parts I missed, like removing the merge_group or verifying the label |
|
Thanks for the quick approval, @MattIPv4! I know I merged this pretty quickly, but I wanted to avoid cluttering our deployments with unnecessary Storybooks. I was also concerned that a mislabel could trigger a potentially unsafe job. While executing that job still required deliberate maintainer action, it increased the risk of unintentionally launching a Chromatic deployment without proper review. |
Fine by me. |
@nodejs/web-infra This is being fast-tracked.
The PR I just merged contained a minor issue: the action would trigger on any label, not just our special one.