Repository navigation
skills(running-in-ci): catch already-merged sibling PRs in dedup - #569
Merged
Merged
Conversation
Long tend-mention queues let a sibling run merge a fix before this run starts; --state open hid the duplicate. Broaden the dedup recheck to --state all (plus an issue-number search for branch-divergent siblings) and add a Read Context check that exits silently when the triggering issue/PR is already closed by a merged sibling. Closes #568 Co-Authored-By: Claude Opus 4.7 <[email protected]>
max-sixty
added a commit
that referenced
this pull request
May 23, 2026
## Summary - Bumps generator version to 0.1.0 and syncs lockfile. 7 commits since 0.0.25: - fix: jitter outage-issue dedup to handle concurrent matrix-leg failures (#586) - fix: install-test default-branch probe on shallow checkout (#583) - fix: pin install-tend badge link to max-sixty/tend (#585) - skills(review-reviewers): call out commenter-self-edit filters as a non-issue (#581) - triage: skip on tend-outage labeled issues (#579) - fix: use REST API for author_association in triage skill (#571) - skills(running-in-ci): catch already-merged sibling PRs in dedup (#569) ## Test plan - [x] `wt test` passes - [x] `pre-commit run --all-files` passes - [ ] CI green
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.
Closes #568.
The dedup recheck in
running-in-cionly looked at open PRs, so when a longtend-mentionqueue let a sibling run open and merge a fix before this run started, the merged sibling was invisible and a near-duplicate PR went out. There was no signal inRead Contexteither: a closed triggering issue (often closed-by the just-merged sibling PR) is a strong "work probably already done" hint that the skill didn't surface.This PR tightens two spots in
plugins/tend-ci-runner/skills/running-in-ci/SKILL.md:Read Contextgains aTriggering issue/PR already closedsubsection. If the trigger is closed at job start and a linked PR merged after the triggering comment, exit silently. Issue triggers useclosedByPullRequestsReferences; PR triggers checkmergedAt/mergeCommit.gh pr listswitches from--state opento--state all(returningstateandmergedAt) so closed and merged siblings count as overlaps. A second--search "author:$BOT_LOGIN <issue-number>"query catches sibling PRs that diverged on branch name but still reference the triggering issue in title or body.Field names verified against live
ghcalls (gh issue view --json closedByPullRequestsReferences,gh pr view --json state,mergedAt,mergeCommit).