Repository navigation
feat(triage): flag a pull request that duplicates another open one - #646
Merged
TheGreatAxios merged 1 commit intoOct 26, 2026
Merged
TheGreatAxios merged 1 commit into
TheGreatAxios merged 1 commit into
Conversation
TheGreatAxios
force-pushed
the
cl-11536-flag-a-pull-request-that-duplicates-another-open-one
branch
2 times, most recently
from
October 26, 2026 22:03
f20ee8b to
306cee3
Compare
TheGreatAxios
force-pushed
the
cl-11536-flag-a-pull-request-that-duplicates-another-open-one
branch
from
October 26, 2026 22:18
306cee3 to
2eb393b
Compare
TheGreatAxios
marked this pull request as ready for review
October 26, 2026 22:18
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 CL-11536
Why
Two open pull requests can make the same change, and a reviewer only finds out by chance. Triage now compares each pull request with the ones opened before it on the same base branch and says which one it repeats.
What changed
listOpenPrsInto, Bitbucket Data Center through itsatfilter). The browser extension answers it from github.com's list filtered on that base.pr_diff_hashtool. It uses the hash the hub's code review takeover already used, now shared as@corbits/common/diff-hash.bun run eval:duplicatesfor the shortlist.onFaildefaults, Close), PRODUCT.md, ARCHITECTURE.md (facts step and its read cost), DECISION_MODEL.md, the triage-workflows and policy check READMEs.Verified
duplicates.test.tscovers:main.test.tstimeouts under load. That file passes alone (6 of 6), as dogithub-readsandgithub-toolafter the last change (70 of 70).bun run check,bun run lintand the local policy check pass. The policy check asks about one rule: the change touches 35 files and the limit is 30.