Repository navigation
ci: 👷 Skip PR_Evidence on closed pull requests - #343
Merged
Merged
Conversation
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Skip
PR_Evidenceon closed pull requests.Adding or removing a label after a merge (for example
announce, which marks PRs for the monthly "What's new") rerunsPR_Evidencethrough thelabeled/unlabeledevents. The merge has closed the PR's issues by then, and the assignment check treats a closed issue as having no assignee, so the check always fails: the merged PR turns red and the maintainer gets a failure notification. This happened today on #335, #331, #332 and #334, and removingannouncefrom the nine PRs after the next "What's new" would do it again.The job now runs only while the PR is open (
if: github.event.pull_request.state == 'open'). A reopened PR is open again, so the check still runs onreopened.How I checked it works
actionlint1.7.12: no new findings (the one SC2016 info on line 37 is there before this change too)yaml.safe_load.github/workflows/PR_Evidence.ymlonlylabeledon a merged PR, which this condition skips. A skipped job reports success, which is fine for a closed PRImages
Not needed: CI configuration only.
Book
🤖 Generated with Claude Code