GithubDavid PineProblem & solution
Automating cross-repo documentation with GitHub Agentic Workflows
Summary
Maintaining documentation across separate repositories often leads to severe lag because technical writers must reverse-engineer shipped features weeks after release. To address this in the Aspire project, the team implemented an automated pipeline using GitHub Agentic Workflows to bridge the product and documentation repositories. When product pull requests merge, a bash step maps milestones to docs release branches before an LLM agent evaluates the diff, drafts documentation updates, and emits structured pull request intents. A dedicated safe-outputs handler materializes these drafts via a scoped GitHub App and assigns the original code reviewers to verify accuracy. Across 396 product pull requests, the system generated 82 documentation pull requests that all merged with a median turnaround time of 44.8 hours.
Context
The Aspire product and its documentation site reside in separate repositories with distinct review chains and security boundaries, which created a documentation lag where writers had to reverse-engineer past code changes without broad cross-repo write tokens.
Approach / What changed
The team adopted GitHub Agentic Workflows to run on merged product pull requests, resolving target release branches deterministically, using an agent with read-only access to draft documentation changes, and passing structured intents to a safe-outputs handler backed by a tightly scoped GitHub App.
Takeaways
Security is preserved by isolating model execution to read operations and delegating pull request creation to a safe-outputs handler restricted by explicit branch, file, and repository allow-lists.
Deterministic branch resolution using pull request and issue milestones prevents the model from guessing or misrouting documentation target branches.
Pre-extracting pull request metadata and issue details in bash steps avoids exceeding model prompt token budgets on large diffs.
Source and freshness
- Source
- github.blog
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.