Add agentic workflow for labelling azd extension PRs#8192
Conversation
90c78d4 to
d6f7f90
Compare
d6f7f90 to
fedc3c7
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
fedc3c7 to
7127ad5
Compare
jongio
left a comment
There was a problem hiding this comment.
The security model here is solid - read-only agent permissions, safe-outputs constrained to add_labels with an allowlist, team membership gating in pre_activation, and AWF firewall sandboxing. pull_request_target is the right trigger since this needs to label fork PRs too.
One question on the doc version references in the agent instructions file - see inline comment.
nit: .github/mcp.json is missing a trailing newline.
| - Workflow files: `.github/workflows/*.md` and `.github/workflows/**/*.md` | ||
| - Workflow lock files: `.github/workflows/*.lock.yml` | ||
| - Shared components: `.github/workflows/shared/*.md` | ||
| - Configuration: https://github.com/github/gh-aw/blob/v0.72.1/.github/aw/github-agentic-workflows.md |
There was a problem hiding this comment.
[MEDIUM] The documentation URLs throughout this file reference gh-aw v0.72.1 (13 occurrences on lines 34, 56, 66, 76, etc.), but the compiled lock file and copilot-setup-steps.yml both use v0.74.3. Is this intentional - e.g., these docs are pinned to a known-good version that was tested? Or should they be updated to match?
If the prompt files at those URLs changed between versions, this agent would load stale instructions when developers use it to create or update workflows.
| ] | ||
| } | ||
| } | ||
| } No newline at end of file |
There was a problem hiding this comment.
[LOW] nit: missing newline at end of file.
This PR introduces a GitHub Agentic Workflow and adds an extension-focused PR labeler for first-party azd extensions under
cli/azd/extensions/**and closely related Azure AI design docs.Note
This workflow uses
safe-outputs.add-labels.allowed: [area/extensions, ext-*]so new extension labels can be picked up without editing the workflow each time. Runtime glob matching forallowedwas recently added in github/gh-aw#32027allowedlabel filters for safe-outputs github/gh-aw#32027 is released in new version ofgh-awWhat changes
cli/azd/extensions/**orcli/azd/docs/**.ext-*label for mapped extension IDs.ext-*labels when a PR relates to multiple mapped extension IDs.area/extensionswhen extension-related changes do not match a currentext-*mapping.Agentic Workflow setup
Because this is the first Agentic Workflow in the repository, this PR also includes the required gh-aw setup artifacts generated from
gh aw init:These files support compiling and maintaining the generated workflow lock file and make future Agentic Workflow changes reproducible for reviewers and agents.
Safety and references
The workflow follows gh-aw guidance for Markdown-based workflows, compiled lock files, read-only agent permissions, and GitHub writes through
safe-outputs.add-labels:Operational note: the default Copilot engine uses the
COPILOT_GITHUB_TOKENGitHub Actions secret for Copilot CLI authentication. The current PAT expires on August 12, 2026 and should be renewed/rotated before then using the gh-aw AI engine secret guidance:Validation
Tested and verified on fork repo PR