Skip to content

fix(triage): strip Triage's labels when a pull request closes before its verdict (CL-12164) - #855

Merged
TheGreatAxios merged 3 commits into
mainfrom
fix-close-strips-labels
Nov 5, 2026
Merged

TheGreatAxios merged 3 commits into
mainfrom
fix-close-strips-labels

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Summary

On GitHub, a pull request that closes or merges before its verdict now loses Triage's retired labels (such as "Triage: Waiting for CI") even where Triage does not comment, provided the workspace lets Triage post there. Before this change, with comments off, nothing was written and an old label stayed. Without the comment, a current verdict cannot be told from a stale one, so current verdict labels and Failed to Run stay. With the comment on, all of Triage's own labels come off unless the comment shows a verdict on the head, whether or not the workspace grants labels, matching how #852 clears Triage's leftover labels once labels are off. Removing the labels reuses the mirror's existing stripping, and no label is added.

The User Manual and the closeOut and closedOut descriptions now say this.

Verification

  • New tests/model case: a labels-only repository with a pull request carrying "Triage: Waiting for CI", closed while CI is pending, loses that label. It failed on main and passes here.
  • New tests/model case: a labels-only repository keeps its verdict label when the pull request closes after the verdict. It failed on the earlier revision of this branch.
  • New tests/model case: with no posting grant, the same close writes nothing.
  • bun run check, bun run lint, bun --conditions=intx-src test ./packages/triage-workflows ./tests/model (179 pass).

Refs CL-12164

@linear-code

linear-code Bot commented Nov 5, 2026

Copy link
Copy Markdown

CL-12164

@corbits-triage

corbits-triage Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Triage: Pass

No changes needed from you. A maintainer will review this pull request.

Notes:

  • Risk: medium (3 recently fixed files)

Approve held: code review has 1 finding at P2 or above open on this head.

@TheGreatAxios
TheGreatAxios force-pushed the fix-close-strips-labels branch from 215251c to 4e2bd3c Compare November 5, 2026 04:05
@TheGreatAxios TheGreatAxios changed the title fix(triage): strip Triage's labels when a pull request closes (CL-12164) fix(triage): strip Triage's labels when a pull request closes before its verdict (CL-12164) Nov 5, 2026
@TheGreatAxios
TheGreatAxios merged commit f31ff92 into main Nov 5, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant