Add automated duplicate issue detection and auto-close workflows#5276
Open
qianheng-aws wants to merge 7 commits intoopensearch-project:mainfrom
Open
Add automated duplicate issue detection and auto-close workflows#5276qianheng-aws wants to merge 7 commits intoopensearch-project:mainfrom
qianheng-aws wants to merge 7 commits intoopensearch-project:mainfrom
Conversation
Implements a 3-workflow system using claude-code-action with Bedrock OIDC: - claude-dedupe-issues.yml: detects duplicates on new issues via Claude - auto-close-duplicates.yml: daily cron closes flagged issues after 3 days - remove-autoclose-on-activity.yml: removes autoclose label on human comment Signed-off-by: Heng Qian <qianheng@amazon.com>
Contributor
|
Failed to generate code suggestions for PR |
- Detected duplicates now get `duplicate` label instead of `autoclose` - Auto-close workflow looks for `duplicate` label - After closing, adds `autoclose` label - Human comment removes `duplicate` label to prevent auto-closure - Fix state_reason to `duplicate` - Change grace period to 1 hour for testing Signed-off-by: Heng Qian <qianheng@amazon.com>
- Add backfill-duplicate-comments.yml to scan historical issues for duplicates - Add thumbs-down instruction to duplicate detection comment Signed-off-by: Heng Qian <qianheng@amazon.com>
songkant-aws
previously approved these changes
Mar 27, 2026
4a4c781 to
a114428
Compare
Contributor
Addressed in commit 9743698 |
Contributor
|
Failed to generate code suggestions for PR |
Signed-off-by: Heng Qian <qianheng@amazon.com>
- Remove unnecessary allowed_non_write_users from dedupe workflow - Pass workflow inputs via env vars to prevent JS injection in backfill - Use bash array for REPO_FLAG to prevent word splitting in shell script Signed-off-by: Heng Qian <qianheng@amazon.com>
Contributor
|
Failed to generate code suggestions for PR |
Backfill workflow dispatches dedupe via API as github-actions[bot], which requires explicit allowlisting in claude-code-action. Signed-off-by: Heng Qian <qianheng@amazon.com>
Contributor
|
Failed to generate code suggestions for PR |
yuancu
reviewed
Mar 27, 2026
…kflow Signed-off-by: Heng Qian <qianheng@amazon.com>
Contributor
|
Failed to generate code suggestions for PR |
yuancu
approved these changes
Mar 27, 2026
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
claude-dedupe-issues.yml(LLM-invoked): triggers on new issues, uses Claude to search for potential duplicatesauto-close-duplicates.yml(NO-LLM): daily cron job closes flagged issues after a 3-day grace period if no objectionremove-duplicate-on-activity.yml(NO-LLM): removesduplicatelabel when a human comments, preventing auto-closurebackfill-duplicate-comments.yml(LLM-invoked): run to backfill historical issues for dedup detection, default 90 days and configuration.How is works
Blew snapshots are based on the test in my personal repo
claude-dedupe-issues.ymlIt will invoke Claude Code and use
/dedupcommand(see more details in dedupe.md) to detect duplicated issue:duplicatetag will be added otherwiseduplicateissues will triggerremove-duplicate-on-activity.ymlworkflow, and it will remove that tagduplicatetag as well.auto-close-duplicates.ymlis a daily cron job closingautocloseissues which is flagged more than 3 daysTest plan
duplicatelabel is applied to detected duplicatesduplicatelabelthumb-downreaction will prevent auto closingSigned-off-by: Heng Qian qianheng@amazon.com