Add agentic issue triage workflow (gh-aw)#3118
Conversation
|
c0a98ab to
5550f51
Compare
5550f51 to
facd427
Compare
New gh-aw installation: an agentic issue-triage workflow that runs on issues opened/reopened. It reads the issue and comments, classifies the issue type when unset (Bug/Feature/Task), adds only existing relevant labels, checks for likely duplicates/related issues, and asks for missing information only when needed. Uses native issue-intents safe outputs (set_issue_type, add_labels) so rationale and confidence travel with each action; low-confidence changes are suggested for maintainer approval rather than applied silently. No custom API jobs, no issue-field mutations, no automatic closing; existing labels are preserved and noop is called when no visible change is needed. Includes the compiled lock file, the action-lock, and the shared gh-aw runtime scaffolding. Repo variable GH_AW_RUNTIME_FEATURES=issue_intents wires the native intent path. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c058b80f-b718-49c7-96e5-f336efcbdc34
facd427 to
7363f41
Compare
Remove hard-coded issue types and label allow-lists from set-issue-type and add-labels so the taxonomy is discovered at runtime, and strip intent-mechanics and tool-mechanics narration from the prompt in favor of outcome-only guidance. Add an assign-to-agent safe output (copilot) so well-scoped, actionable issues can be suggested for the Copilot coding agent, with native issue-intent so the suggestion carries rationale/confidence. Preserves low-noise behavior and never closes issues. Compiled with stable gh-aw v0.83.1. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c058b80f-b718-49c7-96e5-f336efcbdc34
Remove the assign-to-agent safe output and the Copilot suggestion line while the direct-assignment vs staged-preview question is resolved. Retain the approved non-assignment redesign: runtime-discovered issue types and labels (no allow-lists), outcome-only prompt with no intent or tool mechanics, and low-noise/never-close/ask-once behavior. Compiled with stable gh-aw v0.83.1. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c058b80f-b718-49c7-96e5-f336efcbdc34
Re-add the assign-to-agent safe output (name copilot, allowed [copilot], max 1, target triggering, issue-intent true) and the outcome-only prompt line suggesting Copilot for well-scoped, actionable issues. Taxonomy stays runtime-discovered (no issue-type or label allow-lists, no hard-coded names), and the prompt remains outcome-only with no intent or tool mechanics. Compiled with stable gh-aw v0.83.1. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: c058b80f-b718-49c7-96e5-f336efcbdc34
There was a problem hiding this comment.
⚠️ Not ready to approve
The workflows introduce visible/closing behaviors (reaction-on-run and scheduled close-expired jobs) that conflict with the PR’s “no visible change/no auto-closing” guarantees and need alignment or explicit scoping confirmation.
Pull request overview
Installs GitHub Agentic Workflows (gh-aw) issue triage for primer/css, including the human-authored workflow source and the generated/pinned artifacts gh-aw uses to run safely and reproducibly.
Changes:
- Add the gh-aw triage workflow source (
issue-triage.md) and its compiled GitHub Actions workflow (issue-triage.lock.yml). - Add the generated gh-aw maintenance workflow (
agentics-maintenance.yml) that supports upkeep operations. - Pin gh-aw action SHAs and mark generated lock workflows as generated/merge-ours via
.gitattributes.
File summaries
| File | Description |
|---|---|
| .github/workflows/issue-triage.md | Defines the intended triage behavior and safe-output limits for issues opened/reopened. |
| .github/workflows/issue-triage.lock.yml | Compiled, pinned GitHub Actions workflow produced by gh aw compile (v0.83.1). |
| .github/workflows/agentics-maintenance.yml | Generated maintenance workflow supporting gh-aw upkeep/scheduled operations. |
| .github/aw/actions-lock.json | Pins gh-aw action versions to specific SHAs for reproducibility. |
| .gitattributes | Marks *.lock.yml as generated and resolves merges via ours. |
Review details
- Files reviewed: 4/5 changed files
- Comments generated: 2
- Review effort level: Low
Note
Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| on: | ||
| issues: | ||
| types: [opened, reopened] | ||
| reaction: eyes |
| close-expired-issues: | ||
| if: ${{ (!(github.event.repository.fork)) && github.event_name != 'push' && (github.event_name != 'workflow_dispatch' && github.event_name != 'workflow_call' || inputs.operation == '') }} | ||
| runs-on: ubuntu-slim | ||
| permissions: | ||
| issues: write |
What & why
This is a new installation of GitHub Agentic Workflows (gh-aw) issue triage in
primer/css. When an issue is opened or reopened, an agent reads the issue and its comments, then applies lightweight, evidence-based triage using native issue-intents safe outputs:type: *,area: *,needs more info) — never creates labels, never removes existing ones.issue-intent: trueonset-issue-typeandadd-labels), and emits suggestions (rather than silently applying) when confidence is insufficient.noopwhen no visible change is warranted. It never closes issues automatically and never mutates repo issue fields (effort/impact are labels here, not fields).Built with the latest stable gh-aw release (v0.83.1) using only built-in safe outputs — no custom GitHub API jobs.
Video
N/A
Changes
Scoped to the issue-triage workflow plus the files
gh aw compilegenerates for it:.github/workflows/issue-triage.md— source workflow (behavior definition)..github/workflows/issue-triage.lock.yml— compiled workflow (gh-aw v0.83.1)..github/aw/actions-lock.json— pinned action SHAs for the workflow..github/workflows/agentics-maintenance.yml— companion maintenance workflow (auto-generated bygh aw compile; regenerated on every compile)..gitattributes— marks generated*.lock.yml(auto-generated bygh aw compile).No unrelated existing workflow is modified; all changes are additions.
Notes
primeris not thegithuborg, so the required primer-org feature flags (update_issue_suggestions,update_issue_confidence_routing) must be enabled by the onboarding team before the first real run applies intents.GH_AW_RUNTIME_FEATURES=issue_intentsis set onprimer/cssto enable native intent forwarding.skip changesetlabel — this is a CI/tooling-only PR with no@primer/csspackage change, per the repo's standard non-code exemption inwelcome.yml./cc @jonrohan