Adjust duplicate-issue output to use summary/details format#300
Adjust duplicate-issue output to use summary/details format#300
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
📝 WalkthroughWalkthroughAdds a new GitHub Actions workflow file that defines a Copilot-driven Duplicate Issue Detector to analyze newly opened issues, search open and closed issues for duplicates and related issues, and post a single aggregated comment (or perform a noop) with up to 3 duplicates and 3 related candidates. Changes
Sequence Diagram(s)sequenceDiagram
participant User as User
participant GH as GitHub
participant WF as Workflow
participant CP as Copilot AI
participant SE as Search Tool
participant CO as Comment Tool
User->>GH: Create new issue
GH->>WF: Trigger workflow (workflow_call)
WF->>CP: Provide issue context + instructions
CP->>SE: Run targeted searches (open & closed)
SE-->>CP: Return candidate issues
CP->>CP: Evaluate & filter candidates (duplicates/related)
alt Matches found
CP->>CO: Build aggregated add_comment payload (<=3 duplicates, <=3 related)
CO->>GH: Post comment on issue
else No matches
CP->>WF: Return noop / no-duplicate output
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
/ai there's something weird about what github chooses to render a badge for, see: See how the only badge rendered is the one after Fixes? There's some logic being used here and i think if we put the issue number in the summary section it wont render the badge. I dont think we can actually do this |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Updated this PR to account for GitHub’s rendering behavior in I changed the duplicate/related issue output template to use Validation: What is this? | From workflow: Mention in PR Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #300 |
|
/ai no we want the best possible format that still has the badges because the badges have the open/closed icon which is really great for knowing which ones have been opened and closed without us having to write a static answer. We dont need to use summary/details or maybe we do the link, the next line is a summary with one sentence explaining why it's duplicate the rest of the reason in the details block or something? be creative |
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Implemented the requested format update and pushed it to Key change in
Validation: What is this? | From workflow: Mention in PR Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #300 |
Summary
github/workflows/gh-aw-duplicate-issue-detector.mdwith updated output instructions for duplicate/related issue comments<details><summary>...</summary></details>per issue so the issue reference is in the summary and justification is collapsed in detailsWhy
Issue #296 requested:
Validation
make lint-workflowspassedNote
Per workflow editing guardrails, this change is provided in
github/workflows/and needs a maintainer to relocate it into.github/workflows/.What is this? | From workflow: Mention in Issue
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. for issue #296
Summary by CodeRabbit