Skip to content

Migrate issue-triage workflow from event-based to scheduled batch processing with duplicate detection#10748

Merged
stnguyen90 merged 3 commits intomainfrom
copilot/update-issue-triage-workflow
Nov 6, 2025
Merged

Migrate issue-triage workflow from event-based to scheduled batch processing with duplicate detection#10748
stnguyen90 merged 3 commits intomainfrom
copilot/update-issue-triage-workflow

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 1, 2025

The issue-triage agentic workflow previously triggered on every new/reopened issue. This creates N workflow runs per day and provides immediate but resource-inefficient triage. By running once per day, we'll only use 1 premium request per month. In addition, this workflow won't run into permission issues where the issue can't trigger issues created by non-maintainers.

Changes

Trigger configuration (.github/workflows/issue-triage.md)

  • Replaced issues: [opened, reopened] with schedule: cron: '0 0 * * *'
  • Added workflow_dispatch for manual execution

Workflow logic

  • Agent now uses list_issues with since parameter to fetch issues from last 24 hours
  • Processes each issue sequentially with existing triage logic (labels, comments, analysis)
  • Duplicate detection: Actively searches for duplicate and related issues using search_issues tool with key terms from issue title and description
  • Related issues listing: Adds "🔗 Potentially Related Issues" section in triage comments with links to similar open and closed issues
  • Handles empty result set gracefully

Concurrency

  • Changed from gh-aw-${{ github.workflow }}-${{ github.event.issue.number }} to gh-aw-${{ github.workflow }}
  • Ensures single daily run instead of concurrent per-issue runs

Compiled artifacts

Regenerated .github/workflows/issue-triage.lock.yml via gh-aw compile

Behavioral change

Issues triaged once daily (00:00 UTC) instead of immediately upon creation. Maximum triage delay: 24 hours. Use workflow_dispatch for immediate triage needs.

> [!WARNING]
>
>

Original prompt

Update the .github/workflows/issue-triage.md agentic workflow to instead of triggering on new issue, trigger every day and process the issues created in the last 24 hours. Also, to make it easier to test and debug, enable triggering the action manually (workflow dispatch)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI self-assigned this Nov 1, 2025
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Nov 1, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.


Comment @coderabbitai help to get the list of available commands and usage tips.

Copilot AI changed the title [WIP] Update issue triage workflow for daily triggering and manual dispatch Migrate issue-triage workflow from event-based to scheduled batch processing Nov 1, 2025
Copilot AI requested a review from stnguyen90 November 1, 2025 15:53
@stnguyen90 stnguyen90 marked this pull request as ready for review November 3, 2025 18:13
@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2025

Security Scan Results for PR

Docker Image Scan Results

Package Version Vulnerability Severity
binutils 2.44-r2 CVE-2025-5244 HIGH
binutils 2.44-r2 CVE-2025-5245 HIGH
libxml2 2.13.8-r0 CVE-2025-49794 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49796 CRITICAL
libxml2 2.13.8-r0 CVE-2025-49795 HIGH
libxml2 2.13.8-r0 CVE-2025-6021 HIGH
pcre2 10.43-r1 CVE-2025-58050 CRITICAL
golang.org/x/crypto v0.31.0 CVE-2025-22869 HIGH
golang.org/x/oauth2 v0.24.0 CVE-2025-22868 HIGH
stdlib 1.22.10 CVE-2025-47907 HIGH
stdlib 1.22.10 CVE-2025-47912 HIGH
stdlib 1.22.10 CVE-2025-58183 HIGH
stdlib 1.22.10 CVE-2025-58186 HIGH
stdlib 1.22.10 CVE-2025-58187 HIGH
stdlib 1.22.10 CVE-2025-58188 HIGH
stdlib 1.22.10 CVE-2025-61724 HIGH

Source Code Scan Results

🎉 No vulnerabilities found!

@stnguyen90
Copy link
Copy Markdown
Contributor

Previous PR:

@github-actions
Copy link
Copy Markdown

github-actions bot commented Nov 3, 2025

✨ Benchmark results

  • Requests per second: 1,190
  • Requests with 200 status code: 214,242
  • P99 latency: 0.163027249

⚡ Benchmark Comparison

Metric This PR Latest version
RPS 1,190 1,258
200 214,242 226,403
P99 0.163027249 0.162492585

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot, update this workflow to also try and find duplicate issues and add a comment listing all the potentially related issues.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the workflow to actively search for duplicate and related issues and list them in the triage comment.

Changes in commit 2f84315:

  • Step 5: Enhanced to explicitly search for duplicates using search_issues tool with key terms from issue title/description
  • Step 10: Added requirement to include "🔗 Potentially Related Issues" section when matches are found
  • Searches both open and closed issues for comprehensive detection

Copilot AI changed the title Migrate issue-triage workflow from event-based to scheduled batch processing Migrate issue-triage workflow from event-based to scheduled batch processing with duplicate detection Nov 3, 2025
Copilot AI requested a review from stnguyen90 November 3, 2025 20:03
@stnguyen90 stnguyen90 requested a review from EVDOG4LIFE November 4, 2025 00:50
@stnguyen90 stnguyen90 merged commit ebee879 into main Nov 6, 2025
50 of 63 checks passed
@stnguyen90 stnguyen90 deleted the copilot/update-issue-triage-workflow branch November 6, 2025 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants