Skip to content

Add agentic issue triage workflow (gh-aw)#3118

Merged
jonrohan merged 4 commits into
mainfrom
alondahari-setup-aw-issue-triage
Jul 24, 2026
Merged

Add agentic issue triage workflow (gh-aw)#3118
jonrohan merged 4 commits into
mainfrom
alondahari-setup-aw-issue-triage

Conversation

@alondahari

@alondahari alondahari commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

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:

  • Classifies the issue type (Bug / Feature / Task) only when unset, using the primer org's native issue types.
  • Adds only existing, relevant labels (type: *, area: *, needs more info) — never creates labels, never removes existing ones.
  • Flags likely duplicates / related issues and asks for missing information only when genuinely needed.
  • Attaches rationale + confidence to every action via native intent-capable outputs (issue-intent: true on set-issue-type and add-labels), and emits suggestions (rather than silently applying) when confidence is insufficient.
  • Minimizes noise: no routine triage report comment, and noop when 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 compile generates 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 by gh aw compile; regenerated on every compile).
  • .gitattributes — marks generated *.lock.yml (auto-generated by gh aw compile).

No unrelated existing workflow is modified; all changes are additions.

Notes

  • Tracking: github/plan-track-agentic-toolkit#467 (linked, not closed — no per-repo sub-issue exists).
  • Blocker: primer is not the github org, 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.
  • Supersedes closed PR Add agentic issue triage (gh-aw) with native issue intents #3117 (its branch was deleted during a scope correction and GitHub cannot reopen a recreated-branch PR). Same behavior, on stable gh-aw.
  • The repo variable GH_AW_RUNTIME_FEATURES=issue_intents is set on primer/css to enable native intent forwarding.
  • Carries the skip changeset label — this is a CI/tooling-only PR with no @primer/css package change, per the repo's standard non-code exemption in welcome.yml.

/cc @jonrohan

@changeset-bot

changeset-bot Bot commented Jul 23, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 123fe83

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 12:57 Inactive
@alondahari
alondahari force-pushed the alondahari-setup-aw-issue-triage branch from c0a98ab to 5550f51 Compare July 23, 2026 12:57
@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 13:00 Inactive
@alondahari
alondahari force-pushed the alondahari-setup-aw-issue-triage branch from 5550f51 to facd427 Compare July 23, 2026 13:01
@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 13:04 Inactive
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
@alondahari
alondahari force-pushed the alondahari-setup-aw-issue-triage branch from facd427 to 7363f41 Compare July 23, 2026 13:09
@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 13:11 Inactive
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
@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 13:49 Inactive
@github-actions
github-actions Bot temporarily deployed to Storybook Preview July 23, 2026 13:51 Inactive
@alondahari
alondahari marked this pull request as ready for review July 23, 2026 23:50
@alondahari
alondahari requested review from a team as code owners July 23, 2026 23:50

Copilot AI left a comment

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.

⚠️ 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.

Comment on lines +10 to +13
on:
issues:
types: [opened, reopened]
reaction: eyes
Comment on lines +109 to +113
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
@jonrohan
jonrohan merged commit b650ac5 into main Jul 24, 2026
18 checks passed
@jonrohan
jonrohan deleted the alondahari-setup-aw-issue-triage branch July 24, 2026 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants