fix: dedup drift issues across open and closed states - #20
Merged
Merged
Conversation
existing_open_issues only queried --state open, so closing a resolved 'no actionable drift' issue erased the dedup key and the next weekly run re-created a same-titled duplicate (#19 re-created after #9 was closed, with the cycle repeating for every future closure). Query --state all with a title search so closed duplicates still suppress re-opening; fall back to a plain all-state listing when --search is unavailable. Verified: 255 tests OK (incl. new regression assertion on --state all), validate_suite 117 files, sensitive scan 0 findings, drift watch clean.
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.
Summary
--state open:关闭已解决的 NO_ACTIONABLE_DRIFT issue 会抹掉去重键,下次周运行必重开同名重复项([Drift-audit] wechat: NO_ACTIONABLE_DRIFT #9 关闭后 [Drift-audit] wechat: NO_ACTIONABLE_DRIFT #19 重生,循环往复)--state all+ 标题搜索:已关闭的同名 issue 同样抑制重开;--search不可用时回退全量 all-state 列表--state all行为Verification
gh issue list --state all --search 'in:title [Drift-audit]'同时返回开放的 [Drift-audit] wechat: NO_ACTIONABLE_DRIFT #19 与已关闭的 [Drift-audit] wechat: NO_ACTIONABLE_DRIFT #9