Skip to content

Add GitHub Agentic Workflows for automated issue triage, PR review, CI analysis, and release notes#389

Merged
benbalter merged 2 commits intomasterfrom
copilot/add-agentic-workflows
Mar 18, 2026
Merged

Add GitHub Agentic Workflows for automated issue triage, PR review, CI analysis, and release notes#389
benbalter merged 2 commits intomasterfrom
copilot/add-agentic-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 17, 2026

Adds four GitHub Agentic Workflows to automate common repository management tasks using AI-powered agents, along with their compiled .lock.yml files.

Workflows Added

  • Issue Triage (issue-triage.md) — Automatically classifies and labels new issues as bug, feature, or more-information-needed, with optional good first issue/help wanted labels. Posts a comment explaining the classification.
  • PR Review (pr-review.md) — Reviews pull requests for PHP 7.2.5+ compatibility, WordPress Coding Standards compliance, internationalization, security best practices, test coverage, and project conventions.
  • CI Failure Analysis (ci-failure-analysis.md) — Analyzes failed CI runs on the master branch and posts actionable diagnostics on the associated pull request, including suggestions like script/fmt for style fixes.
  • Release Notes (release-notes.md) — Generates categorized release notes (features, bug fixes, docs, maintenance, breaking changes) with contributor credits when a new release is created.

Compiled Workflows

All four workflows are compiled with gh aw compile (v0.60.0) into .lock.yml files with 0 errors and 0 warnings. A .gitattributes file is included to mark lock files as auto-generated.

Security Model

All workflows use read-only permissions by default with minimal write operations gated behind safe-outputs:

Workflow Safe Outputs
Issue Triage add-labels (max 2, allowlisted), add-comment (max 1)
PR Review add-comment (max 1), add-labels (max 1)
CI Failure Analysis add-comment (max 1)
Release Notes update-release (max 1)

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

…lure analysis, and release notes

Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
@benbalter
Copy link
Copy Markdown
Owner

@copilot compile workflows

- Fix pr-review.md: replace invalid 'files' toolset with 'repos'
- Fix ci-failure-analysis.md: add branch restriction to workflow_run trigger
- Fix release-notes.md: add missing issues/pull-requests read permissions
- Add compiled .lock.yml files for all four agentic workflows

Co-authored-by: benbalter <282759+benbalter@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Mar 17, 2026

@copilot compile workflows

Compiled all four workflows with gh aw compile (v0.60.0) in cc4f082. Fixed three validation issues caught during compilation:

  • pr-review.md: replaced invalid files toolset with repos
  • ci-failure-analysis.md: added branches: [master] restriction to workflow_run trigger
  • release-notes.md: added missing issues: read and pull-requests: read permissions

All four .lock.yml files generated with 0 errors, 0 warnings.

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-actions/git/ref/tags/v0.60.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.60.0 --jq .object.sha (http block)
  • https://api.github.com/repos/github/gh-aw/releases/latest
    • Triggering command: /usr/bin/gh gh extension install github/gh-aw (http block)

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

@benbalter benbalter marked this pull request as ready for review March 18, 2026 16:49
Copilot AI review requested due to automatic review settings March 18, 2026 16:49
@benbalter benbalter merged commit 3081408 into master Mar 18, 2026
8 checks passed
@benbalter benbalter deleted the copilot/add-agentic-workflows branch March 18, 2026 16:50
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

Adds GitHub Agentic Workflows (gh-aw) to automate common repo maintenance tasks (issue triage, PR review, CI failure diagnostics, and release notes) by introducing human-authored workflow prompts (.md) plus their compiled .lock.yml counterparts, and marking lockfiles as generated.

Changes:

  • Add 4 new gh-aw workflow definitions (issue-triage, pr-review, ci-failure-analysis, release-notes) under .github/workflows/.
  • Commit the corresponding compiled .lock.yml workflow files generated by gh aw compile.
  • Add .gitattributes rule to treat *.lock.yml as generated (and influence merge behavior).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
.gitattributes Marks gh-aw lockfiles as generated and sets merge behavior for them.
.github/workflows/issue-triage.md Defines the issue triage agent prompt and safe outputs (labels/comment).
.github/workflows/issue-triage.lock.yml Compiled GitHub Actions workflow for issue triage agent.
.github/workflows/pr-review.md Defines the PR review agent prompt and safe outputs (comment/label).
.github/workflows/pr-review.lock.yml Compiled GitHub Actions workflow for PR review agent.
.github/workflows/ci-failure-analysis.md Defines the CI failure analysis agent prompt and safe outputs (comment).
.github/workflows/ci-failure-analysis.lock.yml Compiled GitHub Actions workflow for CI failure analysis agent.
.github/workflows/release-notes.md Defines the release notes agent prompt and safe outputs (update release).
.github/workflows/release-notes.lock.yml Compiled GitHub Actions workflow for release notes agent.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread .gitattributes
@@ -0,0 +1 @@
.github/workflows/*.lock.yml linguist-generated=true merge=ours No newline at end of file
pull-requests: read
tools:
github:
toolsets: [pull_requests, issues]
if: (always()) && (needs.agent.result != 'skipped')
runs-on: ubuntu-slim
permissions:
contents: write
@github-actions github-actions bot mentioned this pull request Mar 18, 2026
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