Skip to content

skill-authoring: CLOSED PRs can carry landed content via consolidation - #198

Open
firaen22 wants to merge 1 commit into
F-e-u-e-r:mainfrom
firaen22:add-closed-pr-consolidation-caveat
Open

skill-authoring: CLOSED PRs can carry landed content via consolidation#198
firaen22 wants to merge 1 commit into
F-e-u-e-r:mainfrom
firaen22:add-closed-pr-consolidation-caveat

Conversation

@firaen22

Copy link
Copy Markdown
Contributor

Summary

The campaign-continuation check's touching-candidate search queries --state open and --state merged only. A maintainer who lands contributions by rebuilding them (no cherry-pick) into a consolidated branch and closing the originals with a disposition comment produces PRs that are neither open nor merged — so the existing query silently drops them from the candidate set even though their content is live on the anchor branch.

Evidence

Observed on this repo itself: PRs #173-181 were each closed individually and landed via consolidated PRs #194-197. Verified independently (not just from the disposition comments) by:

Change

Adds one caveat to the existing OPEN+MERGED query block in skill-authoring's campaign-continuation-check rule: CLOSED is not automatically a non-hit. Before excluding a closed PR from the touching-candidate set, read its disposition comment or diff its changes against the anchor branch — a closed PR with no disposition comment and no matching content on the anchor branch is the only shape that safely reads as declined.

Test plan

  • Diff reviewed inline before push (12 insertions, 1 deletion, single file)
  • Unicode sweep on the diff — only en-dash/≠ characters, both already used elsewhere in this file's house style
  • Branched from upstream/main at c2fc127, not from any prior local PR diff

The campaign-continuation check's touching-candidate search only queries
--state open and --state merged. A maintainer who lands contributions by
rebuilding them (no cherry-pick) into a consolidated branch and closing the
originals with a disposition comment produces PRs that are neither open nor
merged, so the existing query silently drops them from the candidate set even
though their content is live on the anchor branch.

Observed on F-e-u-e-r/opus-pack itself: PRs F-e-u-e-r#173-181 were each closed
individually and landed via consolidated PRs F-e-u-e-r#194-197 (verified by reading
each disposition comment and grepping the landed content against upstream
main). Add a caveat that CLOSED is not automatically a non-hit — read the
disposition comment or diff the PR's changes against the anchor branch before
excluding a closed PR from the touching-candidate set.
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