Skip to content

ci: 👷 Skip PR_Evidence on closed pull requests - #343

Merged
ShisatoYano merged 1 commit into
mainfrom
ci/pr-evidence-skip-closed
Nov 28, 2026
Merged

ShisatoYano merged 1 commit into
mainfrom
ci/pr-evidence-skip-closed

Conversation

@ShisatoYano

Copy link
Copy Markdown
Owner

Summary

Skip PR_Evidence on closed pull requests.

Adding or removing a label after a merge (for example announce, which marks PRs for the monthly "What's new") reruns PR_Evidence through the labeled/unlabeled events. 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 removing announce from 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 on reopened.

How I checked it works

  • actionlint 1.7.12: no new findings (the one SC2016 info on line 37 is there before this change too)
  • The file loads with yaml.safe_load
  • The change is the two lines in .github/workflows/PR_Evidence.yml only
  • On the failed runs today (for example run 46110724207 on fix: 🐛 Sort the points of a cluster before fitting a rectangle #335), the event was labeled on a merged PR, which this condition skips. A skipped job reports success, which is fine for a closed PR
  • After merging, I'll check that removing a label from an already merged PR doesn't produce a failing run

Images

Not needed: CI configuration only.

Book

  • This PR doesn't change code that the book describes, or I updated those pages

🤖 Generated with Claude Code

Adding or removing a label after the merge, such as announce, reruns
PR_Evidence. The PR's issues were closed by the merge, so the assignment
check always fails and turns the merged PR red, as it did on #335, #331,
#332 and #334.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ShisatoYano ShisatoYano added the bug Something isn't working label Nov 28, 2026
@ShisatoYano ShisatoYano self-assigned this Nov 28, 2026
@ShisatoYano
ShisatoYano merged commit bf79ba3 into main Nov 28, 2026
17 checks passed
@ShisatoYano
ShisatoYano deleted the ci/pr-evidence-skip-closed branch November 28, 2026 06:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant