Repository navigation
Replace pr-docs-hook with gh aw agentic workflow - #15916
David Pine (IEvangelist) merged 2 commits into
Conversation
Replace the broken pr-docs-hook.yml workflow (expired PAT, Copilot CLI) with a new GitHub Agentic Workflow (pr-docs-check.md) that: - Triggers on merged PRs against main and release/* branches - Analyzes the PR diff for documentation needs using an AI agent - Checks out microsoft/aspire.dev and follows the doc-writer SKILL - Creates a draft PR on microsoft/aspire.dev with actual docs changes - Comments on the original aspire PR with a link to the draft PR - Uses GitHub App auth (ASPIRE_BOT_APP_ID/ASPIRE_BOT_PRIVATE_KEY) for cross-repo operations instead of expiring PATs Also recompiles daily-repo-status.lock.yml with gh aw v0.67.1. Replaces #14526 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15916Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15916" |
There was a problem hiding this comment.
Pull request overview
Replaces the legacy PR docs hook workflow (Copilot CLI + PAT) with a gh aw Agentic Workflow that analyzes merged PRs for doc impact and, when needed, drafts documentation PRs in microsoft/aspire.dev with safe-output gating.
Changes:
- Remove the broken
.github/workflows/pr-docs-hook.ymlworkflow and its prompt file. - Add a new agentic workflow definition (
pr-docs-check.md) plus its compiled workflow (pr-docs-check.lock.yml). - Update infra/agentic workflow support files: ignore local AW logs, add
.github/aw/actions-lock.json, and recompiledaily-repo-status.lock.ymlwithgh awv0.67.1.
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| .gitignore | Ignore local Agentic Workflow debug logs under .github/aw/logs/. |
| .github/workflows/pr-docs-hook.yml | Removed broken legacy docs-check workflow (expired PAT-based auth). |
| .github/workflows/pr-docs-check.md | Added new agentic workflow source definition for docs analysis and draft PR creation. |
| .github/workflows/pr-docs-check.lock.yml | Added compiled GitHub Actions workflow generated by gh aw compile. |
| .github/workflows/daily-repo-status.lock.yml | Recompiled existing lock workflow with newer gh aw version. |
| .github/prompts/docs-audit-prompt.md | Removed legacy prompt file (logic now embedded in workflow markdown). |
| .github/aw/actions-lock.json | Added action pin lock metadata for agentic workflow compilation. |
- Add owner/repositories to checkout github-app so the token is scoped to aspire.dev (not the current repo) - Add 'aspire' to tools.github repositories so the agent can read PR details/diff from the source repo Addresses Copilot review feedback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Maddy Montaquila (maddymontaquila)
left a comment
There was a problem hiding this comment.
gh awwwwwwww so cute
|
/create-issue
|
e010b0c
into
microsoft:main
* Replace pr-docs-hook with gh aw agentic workflow Replace the broken pr-docs-hook.yml workflow (expired PAT, Copilot CLI) with a new GitHub Agentic Workflow (pr-docs-check.md) that: - Triggers on merged PRs against main and release/* branches - Analyzes the PR diff for documentation needs using an AI agent - Checks out microsoft/aspire.dev and follows the doc-writer SKILL - Creates a draft PR on microsoft/aspire.dev with actual docs changes - Comments on the original aspire PR with a link to the draft PR - Uses GitHub App auth (ASPIRE_BOT_APP_ID/ASPIRE_BOT_PRIVATE_KEY) for cross-repo operations instead of expiring PATs Also recompiles daily-repo-status.lock.yml with gh aw v0.67.1. Replaces #14526 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Fix checkout and tools token scoping for cross-repo access - Add owner/repositories to checkout github-app so the token is scoped to aspire.dev (not the current repo) - Add 'aspire' to tools.github repositories so the agent can read PR details/diff from the source repo Addresses Copilot review feedback. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Post-merge review notesA few observations from reviewing this PR that could be considered for a follow-up if needed: 1. Over-permissioned
|
|
Those are good callouts Jose Perez Rodriguez (@joperezr) - see #15923 |
Description
Replaces the broken
pr-docs-hook.ymlworkflow with a new GitHub Agentic Workflow (pr-docs-check.md) powered bygh aw.What was wrong
DOCS_COPILOT_TOKEN) for Copilot CLI authenticationmicrosoft/aspire.devwas also broken due to the expired tokenWhat this PR does
pr-docs-check.md): Uses an AI coding agent to analyze merged PRs for documentation needs and create draft PRs onmicrosoft/aspire.devwith actual documentation changesmainandrelease/*branches (plusworkflow_dispatchfor manual runs)microsoft/aspire.devand follows its.github/skills/doc-writer/SKILL.mdguidelines for writing documentationASPIRE_BOT_APP_ID+ASPIRE_BOT_PRIVATE_KEYfor cross-repo authentication — no PATs to expire.github/aw/logs/to prevent local agentic workflow debug logs from being committeddaily-repo-status.lock.ymlrecompiled withgh awv0.67.1Files removed
.github/workflows/pr-docs-hook.yml— broken workflow with expired PAT.github/prompts/docs-audit-prompt.md— old prompt file, logic now embedded in the workflow markdownReplaces #14526
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: