Conversation
… backfill Adds explicit `workflow_dispatch:` trigger to the auto-triage-issues workflow so maintainers can manually kick off a label backfill from the GitHub Actions UI at any time. Also adds a dedicated "On Manual/On-Demand Runs (workflow_dispatch)" prompt section that instructs the agent to fetch ALL open unlabeled issues and report how many remain for subsequent passes. Fixes #[issue] - Backfill Labels for Open Unlabeled Issues Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/ea04ec20-e46b-4d0a-b76d-37d2ff4f8034
There was a problem hiding this comment.
Pull request overview
Adds explicit support and guidance for running the auto-triage agent on-demand so maintainers can trigger an unlabeled-issue backfill via GitHub Actions.
Changes:
- Add
workflow_dispatchto the workflow’son:block inauto-triage-issues.md. - Add a new “On Manual/On-Demand Runs (workflow_dispatch)” section describing manual backfill behavior and reporting.
- Recompile the generated lockfile (frontmatter hash bump).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| .github/workflows/auto-triage-issues.md | Adds the manual trigger and documents how manual backfill runs should fetch/process/report unlabeled issues. |
| .github/workflows/auto-triage-issues.lock.yml | Regenerated metadata hash for the compiled workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| issues: | ||
| types: [opened, edited] | ||
| schedule: every 6h | ||
| workflow_dispatch: |
There was a problem hiding this comment.
The compiled workflow already contains a workflow_dispatch trigger (see .github/workflows/auto-triage-issues.lock.yml), so this change may not actually be what enables manual runs from the Actions UI. Consider either (a) updating the PR description to clarify that this mostly aligns the source .md with the already-generated workflow, or (b) confirming the generator won't inject workflow_dispatch by default and adjusting accordingly to avoid confusion about what behavior is changing.
| 1. **Fetch ALL open issues without any labels** using GitHub tools — do not limit to a fixed count | ||
| 2. **Process up to 10 unlabeled issues** in this run (respecting safe-output limits); if more exist, note the remainder in the report |
There was a problem hiding this comment.
For manual backfill runs, instructing the agent to "fetch ALL open issues without any labels" is likely to require paginating potentially large result sets, which can exceed the workflow’s configured rate limit (5/min) and 15-minute timeout. A more reliable approach is to use a search/list call that returns a total count (or first page + total_count), then fetch only enough pages to process the next 10 issues while still reporting how many unlabeled issues remain.
| 1. **Fetch ALL open issues without any labels** using GitHub tools — do not limit to a fixed count | |
| 2. **Process up to 10 unlabeled issues** in this run (respecting safe-output limits); if more exist, note the remainder in the report | |
| 1. **Determine the total number of open issues without any labels** using a GitHub search/list API that returns a `total_count` (or first page + `total_count`), without iterating through all pages | |
| 2. **Fetch and process only the next batch of up to 10 unlabeled issues** in this run (respecting safe-output limits); if more exist, use the total count to note the remaining unlabeled issues in the report |
There are currently unlabeled open issues that the scheduled every-6h triage pass handles incrementally, but with no way to trigger a full backfill on-demand.
Changes
auto-triage-issues.md: Add explicitworkflow_dispatch:to theon:block, enabling maintainers to trigger a backfill run directly from the GitHub Actions UI.auto-triage-issues.lock.yml: Recompiled (frontmatter hash bump only).💬 Send tasks to Copilot coding agent from Slack and Teams to turn conversations into code. Copilot posts an update in your thread when it's finished.