Repository navigation
Create auto-documenting workflow - #69391
Merged
wtgodbe merged 14 commits intoSep 21, 2026
Merged
Conversation
Co-authored-by: Copilot App <[email protected]>
…kflow Add fork docs check workflow
Co-authored-by: Copilot App <[email protected]>
…kflow Use workflow token for source PR reads
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Add deterministic version resolution, safe reuse of existing documentation drafts, trusted outcome validation, and a bounded agent turn budget. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Allow up to 100 model invocations and report preflight validation failures without an assertion traceback. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Allow ordinary security-related features and behavior changes to be documented at the level already established in the docs while continuing to exclude vulnerability details and abuse analysis. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Contributor
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
Use the configured Client ID secret and reject inconsistent or failed documentation mutations before reporting success. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 2b9e3a63-1301-4a8f-8245-b077328bfd4e
wtgodbe
approved these changes
Sep 21, 2026
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Three moderate issues remain unresolved.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 3
Open (3)
What changed in this PR
Adds a manually dispatched workflow that analyzes merged ASP.NET Core PRs and creates or updates documentation drafts.
Changes:
- Adds version resolution and existing-draft detection helpers.
- Adds outcome validation and tests.
- Adds the workflow definition and generated lock files.
Review findings remain unresolved:
.github/workflows/pr-docs-check.md: enforce the merged-state requirement before agent and safe-output execution (moderate, 2 votes)..github/workflows/pr-docs-check.md: stop execution when outcome canonicalization fails (moderate, 2 votes)..github/workflows/pr-docs-check/validate_outcome.py: normalize or constrain accepted pull-request target aliases (moderate, 2 votes).
| File | Description |
|---|---|
.github/workflows/pr-docs-check/version-policy.json |
Version policy configuration |
.github/workflows/pr-docs-check/validate_outcome.py |
Validates workflow outcomes |
.github/workflows/pr-docs-check/test_validate_outcome.py |
Tests outcome validation |
.github/workflows/pr-docs-check/test_resolvers.py |
Tests resolver behavior |
.github/workflows/pr-docs-check/resolve_target_version.py |
Resolves target documentation versions |
.github/workflows/pr-docs-check/find_existing_draft.py |
Finds trusted existing documentation drafts |
.github/workflows/pr-docs-check.md |
Defines the documentation workflow |
.github/workflows/pr-docs-check.lock.yml |
Generated workflow |
.github/aw/actions-lock.json |
Updates the gh-aw action lock |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+337
to
+339
| if (!outcome.allow_comment) { | ||
| core.setFailed(`Outcome validation failed: ${outcome.diagnostic || 'unknown reason'}`); | ||
| } |
Comment on lines
+501
to
+502
| gh api "/repos/${SOURCE_REPOSITORY}/pulls/${SOURCE_PR_NUMBER}" \ | ||
| > "${CONTEXT_DIR}/source-pr.json" |
| def _validate_update_targets(payload: Any, expected_number: int) -> None: | ||
| for item_type in ("push_to_pull_request_branch", "update_pull_request"): | ||
| item = _one_item(payload, item_type) | ||
| actual_number = _positive_int(item.get("pull_request_number"), f"{item_type} pull_request_number") |
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.

The workflow was validated against five merged
dotnet/aspnetcorepull requests:All five agent, validation, and safe-output paths completed successfully (posting comment on dotnet/aspnetcore from fork is what failed and its OK for my validation).