Draft
Conversation
Adds a GitHub Agentic Workflow that analyzes merged PRs and opens draft PRs directly on dotnet/docs-maui when documentation updates are needed. Triggers on every merged PR (with paths-ignore for build/CI/meta files). The agent reads the diff, determines if user-facing changes affect docs, and either opens a draft PR on docs-maui updating dev-flow.md or comments on the source PR that no docs update is needed. Requires a GitHub App (DOCS_APP_ID + DOCS_APP_PRIVATE_KEY) installed on both dotnet/maui-labs and dotnet/docs-maui for cross-repo authentication. Modeled after dotnet/maui PR #34572 and dotnet/aspire PR #14526. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Replace the GitHub App auth (DOCS_APP_ID + DOCS_APP_PRIVATE_KEY) with the MAUI_BOT_TOKEN PAT for cross-repo operations on dotnet/docs-maui. This simplifies the prerequisites from GitHub App setup to a single secret. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Let the workflow try creating PRs on dotnet/docs-maui using the default token to see if the org-level permissions are sufficient. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Add MAUI_BOT_TOKEN for cross-repo auth on dotnet/docs-maui - Fix MCP tools path: src/Cli/Microsoft.Maui.Cli/DevFlow/ (code was moved) - Remove non-existent PublicAPI.Unshipped.txt trigger - Handle workflow_dispatch edge cases: invalid PR numbers, unmerged PRs - Update CLI command references: DevFlow CLI -> maui devflow - Check for conflicting draft PRs before opening new ones Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a GitHub Agentic Workflow that automatically analyzes merged PRs and opens draft PRs directly on
dotnet/docs-mauiwhen documentation updates are needed.How it works
mainorrelease/*(withpaths-ignorefor build/CI/meta files).csprojfilesopens a draft PR on
dotnet/docs-mauiand comments on the source PR with a linkcomments on the source PR with a brief explanation
Security
Files
.github/workflows/pr-docs-check.md.github/workflows/pr-docs-check.lock.yml.github/aw/actions-lock.json.gitattributes.gitignore.github/aw/logs/Prerequisites before merging
MAUI_BOT_TOKENrepository secret (PAT with Contents + Pull Requests write access todotnet/docs-maui)COPILOT_GITHUB_TOKENsecret for the Copilot engine (may already be configured at org level)docs-from-codelabel todotnet/docs-maui