Skip to content

ci: label pull requests that conflict, fail CI, are stacked or need review - #423

Merged
aitianshi merged 2 commits into
mainfrom
ci/pr-labels
Nov 25, 2026
Merged

aitianshi merged 2 commits into
mainfrom
ci/pr-labels

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

What

  • The pull request list does not show which ones conflict, fail CI, wait for another or wait for a reviewer.
  • pr-labels.yml sets and removes merge conflict, ci failing, stacked and needs review on every open pull request.
  • needs review: not a draft, based on main, no conflict, tests passed, no approval or change request on the latest commit by someone who can push.
  • Runs on a push to main, a pull request's changes of commit, base, draft state or review, the end of tests, or by hand.

Before and after

Pull request list, 25 November. After is the dry run's output.

Label Before After
merge conflict none #405 #403 #402 #370 #328 #244 #170
ci failing none none now
stacked none none now
needs review none #412 #404 #352 #325

Verified

  • Dry run on the open pull requests, writes stubbed: the table above.
  • Made-up pull requests: labels added, removed, kept while mergeability is unknown; a review on an older commit does not count; a rerun that passes clears ci failing.
  • actionlint passes.
  • Not checked: a run on GitHub, possible only once on main.

Risk

  • A review of a fork's pull request has a read-only token: the next run updates its label.
  • pull_request_target, to label forks: checks out no code, writes to pull requests only.
  • A newer run cancels the one in progress, which can show as cancelled.
  • Undo: revert, delete the labels.

Agents

  • Claude Code, Opus 5.5: code, dry runs

@aitianshi aitianshi changed the title ci: label pull requests that conflict, fail CI or are stacked ci: label pull requests that conflict, fail CI, are stacked or need review Nov 25, 2026
@aitianshi
aitianshi marked this pull request as ready for review November 25, 2026 10:16
@github-actions

Copy link
Copy Markdown

🔴 PR judge · 3 of 3 yes · #423, no linked issue

Merge risk ⛔ SEVERE the judge's reading of the diff; a workflow changed: .github/workflows/pr-labels.yml
Depth 🔴 EXTREME the deepest path is .github/workflows/pr-labels.yml
Question Verdict
Changes do what the issue asks –
Issue and pull request describe the same change –
Description matches the diff ✅ yes
Diff stays in scope ✅ yes
Risk named in the description ✅ yes
Before and after shown –
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/, .agents/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

@aitianshi
aitianshi merged commit 70279ab into main Nov 25, 2026
4 checks passed
@aitianshi
aitianshi deleted the ci/pr-labels branch November 25, 2026 10:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant