Skip to content

Add workflow for triage skill#5566

Merged
ellahathaway merged 25 commits into
dotnet:mainfrom
ellahathaway:triage-skill-with-workflow
Jun 2, 2026
Merged

Add workflow for triage skill#5566
ellahathaway merged 25 commits into
dotnet:mainfrom
ellahathaway:triage-skill-with-workflow

Conversation

@ellahathaway
Copy link
Copy Markdown
Member

Adds a github workflow to triage new issues

@ellahathaway ellahathaway marked this pull request as ready for review May 15, 2026 20:57
@ellahathaway ellahathaway requested a review from a team as a code owner May 15, 2026 20:57
ellahathaway and others added 3 commits May 15, 2026 14:09
Agent markdown files use non-standard frontmatter that triggers
false lint failures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/triage.md
Comment thread .github/workflows/triage.md
Comment thread .github/workflows/triage.md Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread .github/agents/agentic-workflows.agent.md Outdated
ellahathaway and others added 3 commits May 29, 2026 09:48
Enables manual testing of the triage workflow by providing an issue number
as input, without needing to wait for a new issue to be filed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The agent wasn't receiving the workflow_dispatch input value because
it wasn't interpolated into the prompt. Also explicitly tells the
agent to target dotnet/source-build (not the fork).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
ellahathaway and others added 2 commits May 29, 2026 10:29
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…triage prompt

- Update all gh-aw blob references from v0.72.1 to v0.74.4
- Use github.repository context variable instead of hardcoded repo name
- Add workflow_dispatch trigger for manual re-triage

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ellahathaway
Copy link
Copy Markdown
Member Author

ellahathaway commented May 29, 2026

All review feedback addressed. Successfully tested end-to-end from a fork:

Example issue + run:

Changes in latest push (bea4bc0):

  • Updated all gh-aw blob references in agentic-workflows.agent.md from v0.72.1 to v0.74.4
  • Use github.repository context variable instead of hardcoded repo name in triage prompt
  • Added workflow_dispatch trigger with issue_number input for manual re-triage

This is ready for another look.

@ellahathaway ellahathaway requested a review from mthalman May 29, 2026 17:44
Comment thread .github/workflows/triage.md Outdated
Comment thread .github/workflows/triage.md
Comment thread .github/aw/actions-lock.json
Comment thread .github/workflows/lint-code-base.yml Outdated
ellahathaway and others added 6 commits June 1, 2026 10:05
Switch from issue-opened trigger to cron schedule for security
(prevents prompt injection from community issues). Add shared
github-guard-policy.md with community approval label. Add
discussions: false to safe-outputs.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Downgrade from v0.74.8 to v0.74.4 to match the version referenced
in copilot-setup-steps.yml.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The 'approval-labels' guard policy requires 'min-integrity' to be set
for gh-aw compilation to succeed.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run at 12:00, 16:00, 19:00, 23:00 UTC (5am, 9am, 12pm, 4pm PT)
on weekdays only, evenly spaced across the team's working window.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ellahathaway ellahathaway requested review from Copilot and mthalman June 1, 2026 17:30
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a GitHub Agentic Workflows (gh-aw) based automation to triage newly opened/untriaged issues on a schedule, along with shared workflow components and repository configuration to support secure execution and Copilot tooling setup.

Changes:

  • Add a scheduled “triage” agentic workflow source (triage.md) and its generated lock workflow (triage.lock.yml).
  • Introduce shared gh-aw components for PAT pooling and GitHub MCP guard policy (shared/pat_pool.md, shared/github-guard-policy.md) plus PAT pool documentation.
  • Add repo config and workflow updates to support the new agentic workflows (Copilot setup workflow, MCP config, linter exclusions, and .gitattributes for lock files).

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.github/workflows/triage.md Defines the gh-aw triage workflow prompt, triggers, safe-outputs, and engine token selection.
.github/workflows/triage.lock.yml Generated GitHub Actions workflow produced by gh aw compile for the triage workflow.
.github/workflows/shared/pat_pool.md Shared import that selects a Copilot PAT from a pool and exposes the selected index.
.github/workflows/shared/pat_pool.README.md Documentation for onboarding and managing the PAT pool approach.
.github/workflows/shared/github-guard-policy.md Shared GitHub MCP guard policy requiring community approval labeling for community issues.
.github/workflows/lint-code-base.yml Updates super-linter exclusions to avoid linting agentic workflow source files.
.github/workflows/copilot-setup-steps.yml Adds a Copilot setup workflow to install gh-aw tooling for Copilot Agent.
.github/mcp.json Adds MCP server configuration pointing to gh aw mcp-server.
.github/aw/actions-lock.json Adds action lock metadata for selected actions used by gh-aw tooling.
.github/agents/agentic-workflows.agent.md Adds an agent descriptor/dispatcher doc for working with gh-aw workflows.
.gitattributes Marks *.lock.yml as generated and configures merge behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/triage.md Outdated
Comment thread .github/workflows/triage.md
Comment thread .github/workflows/copilot-setup-steps.yml Outdated
Comment thread .github/workflows/lint-code-base.yml Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
ellahathaway and others added 4 commits June 1, 2026 10:46
Without an explicit max, safe-outputs defaults to 1 comment per run,
blocking batch triage of multiple issues.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the version used to generate the lock file so developers get
consistent behavior when using the setup workflow to compile/debug.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
These files are auto-generated by gh-aw compile and should not be
linted.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The schedule trigger runs as github-actions[bot], so including it in
skip-bots would block all scheduled triage runs. Recompile to sync
the lock file with the source which already has only [copilot].

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/copilot-setup-steps.yml
Comment thread .github/agents/agentic-workflows.agent.md Outdated
Align documentation URLs with the version used in actions-lock.json
and copilot-setup-steps.yml.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@ellahathaway ellahathaway merged commit 5dd18d4 into dotnet:main Jun 2, 2026
2 checks passed
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