Skip to content

Add issue triage agentic workflow#1134

Open
Copilot wants to merge 3 commits intomainfrom
copilot/triage-new-issues-workflow
Open

Add issue triage agentic workflow#1134
Copilot wants to merge 3 commits intomainfrom
copilot/triage-new-issues-workflow

Conversation

Copy link
Contributor

Copilot AI commented Feb 26, 2026

Adds a GitHub Agentic Workflow (gh-aw) that automatically triages newly opened issues: classifying type, detecting duplicates, and requesting missing info when the description is unclear.

Workflow: issue-triage

Trigger: issues: opened

Steps (in order):

  • Fetch full issue details via GitHub API
  • Search open/closed issues for duplicates → label duplicate + comment + stop
  • Classify type → bug / enhancement / feature-request / question / documentation
  • Evaluate clarity → label needs-more-info + targeted clarifying comment if description is insufficient

Safe outputs used: add-labels, add-comment, update-issue — main job runs with issues: read only; write operations delegated to separate safe-output jobs.

Network: restricted to api.github.com.

Files

  • .github/workflows/issue-triage.md — workflow definition (editable at runtime without recompilation)
  • .github/workflows/issue-triage.lock.yml — compiled GitHub Actions YAML (generated, do not edit)
  • .gitattributes — marks lock files as linguist-generated

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com>
Copilot AI changed the title [WIP] Add workflow for triaging new issues Add issue triage agentic workflow Feb 26, 2026
@RichardChen820 RichardChen820 marked this pull request as ready for review February 26, 2026 07:12
Comment on lines +22 to +24
- priority-high
- priority-medium
- priority-low
Copy link
Member

Choose a reason for hiding this comment

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

@copilot, remove the content about the priority, determine the priority is a tricky part, let's focus on the triage per se first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done — removed priority-high, priority-medium, and priority-low from the allowed labels list in e476424.

Comment on lines +67 to +72
## Step 4: Assign Priority

Add exactly one priority label based on impact and severity:
- **priority-high**: Security vulnerabilities, data loss, service outages, issues blocking many users, or regressions in core functionality.
- **priority-medium**: Significant functionality issues or important feature requests with moderate impact.
- **priority-low**: Minor bugs, cosmetic issues, nice-to-have features, or low-impact requests.
Copy link
Member

Choose a reason for hiding this comment

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

@copilot, remove the content about the priority, determine the priority is a tricky part, let's focus on the triage per se first.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done — removed the "Assign Priority" step entirely in e476424. The workflow now goes directly from classifying the issue type to evaluating clarity.

Comment on lines +95 to +104
## Step 6: Assign to Team Members

Assign the issue to an appropriate team member using these criteria:
- Use the GitHub API to search recent issues and PRs to identify active contributors and maintainers.
- For **bug** or **priority-high** issues, look for a maintainer who has recently closed similar bug reports or reviewed related PRs.
- For **feature-request** or **enhancement** issues, look for a contributor who has recently worked on related features.
- For **question** or **documentation** issues, assign to whoever most recently engaged with similar topics.
- If no suitable assignee can be identified from the repository history, leave the issue unassigned.

Do not invent usernames. Only assign to GitHub users who appear as active contributors in the repository's issue and PR history.
Copy link
Member

Choose a reason for hiding this comment

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

@copilot Remove the Assign to Team Members section, there's not much context abou feature owner in this repo, determine the owner is tricky for now, let's focus on the issue triage first

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done — removed the "Assign to Team Members" section in e476424.

Co-authored-by: RichardChen820 <99175581+RichardChen820@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Mar 5, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.53.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.53.2 --jq .object.sha (http block)

If you need me to access, download, or install something from one of these locations, you can either:

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.

2 participants