Skip to content

Add agentic workflow for documentation consistency#45778

Open
mccoyp wants to merge 2 commits intoAzure:mainfrom
mccoyp:agentic-workflow
Open

Add agentic workflow for documentation consistency#45778
mccoyp wants to merge 2 commits intoAzure:mainfrom
mccoyp:agentic-workflow

Conversation

@mccoyp
Copy link
Member

@mccoyp mccoyp commented Mar 18, 2026

Description

See mccoyp#3 for implementation in my fork; tracking issue #45674.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@mccoyp mccoyp requested review from a team, benbp, scbedd and weshaggard as code owners March 18, 2026 21:41
Copilot AI review requested due to automatic review settings March 18, 2026 21:41
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Agentic Workflows (gh-aw) based automation to periodically check repository documentation for inconsistencies and open a PR with fixes, along with local/dev setup support for running the workflow tooling.

Changes:

  • Adds a doc consistency check gh-aw workflow source (.md) and its compiled GitHub Actions workflow (.lock.yml).
  • Updates developer tooling/config to support running gh-aw (VS Code MCP config + Copilot setup workflow).
  • Treats generated workflow lock files as generated in .gitattributes.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
.vscode/mcp.json Adds an MCP server entry for gh-aw tooling.
.github/workflows/doc-consistency-check.md Defines the gh-aw workflow prompt/instructions and frontmatter config.
.github/workflows/doc-consistency-check.lock.yml Compiled GitHub Actions workflow that runs the agent and creates PRs via Safe Outputs.
.github/workflows/copilot-setup-steps.yml Installs gh-aw CLI support in the Copilot setup workflow.
.github/aw/actions-lock.json Adds an actions lock manifest for gh-aw-related actions.
.github/agents/agentic-workflows.agent.md Adds an agent definition/dispatcher doc for gh-aw usage.
.gitattributes Marks workflow lock files as generated and configures merge behavior.

You can also share your feedback on Copilot code review. Take the survey.

- agent
- safe_outputs
if: (always()) && (needs.agent.result != 'skipped')
runs-on: ubuntu-slim
Comment on lines +965 to +967
if: ((!cancelled()) && (needs.agent.result != 'skipped')) && (needs.agent.outputs.detection_success == 'true')
runs-on: ubuntu-slim
permissions:
#*.rtf diff=astextplain
#*.RTF diff=astextplain

.github/workflows/*.lock.yml linguist-generated=true merge=ours No newline at end of file
GH_AW_ALLOWED_DOMAINS: "api.business.githubcopilot.com,api.enterprise.githubcopilot.com,api.github.com,api.githubcopilot.com,api.individual.githubcopilot.com,api.snapcraft.io,archive.ubuntu.com,azure.archive.ubuntu.com,crl.geotrust.com,crl.globalsign.com,crl.identrust.com,crl.sectigo.com,crl.thawte.com,crl.usertrust.com,crl.verisign.com,crl3.digicert.com,crl4.digicert.com,crls.ssl.com,github.com,host.docker.internal,json-schema.org,json.schemastore.org,keyserver.ubuntu.com,ocsp.digicert.com,ocsp.geotrust.com,ocsp.globalsign.com,ocsp.identrust.com,ocsp.sectigo.com,ocsp.ssl.com,ocsp.thawte.com,ocsp.usertrust.com,ocsp.verisign.com,packagecloud.io,packages.cloud.google.com,packages.microsoft.com,ppa.launchpad.net,raw.githubusercontent.com,registry.npmjs.org,s.symcb.com,s.symcd.com,security.ubuntu.com,telemetry.enterprise.githubcopilot.com,ts-crl.ws.symantec.com,ts-ocsp.ws.symantec.com"
GITHUB_SERVER_URL: ${{ github.server_url }}
GITHUB_API_URL: ${{ github.api_url }}
GH_AW_SAFE_OUTPUTS_HANDLER_CONFIG: "{\"create_pull_request\":{\"labels\":[\"documentation\",\"automated\"],\"max\":1,\"max_patch_size\":1024,\"protected_files\":[\"package.json\",\"bun.lockb\",\"bunfig.toml\",\"deno.json\",\"deno.jsonc\",\"deno.lock\",\"global.json\",\"NuGet.Config\",\"Directory.Packages.props\",\"mix.exs\",\"mix.lock\",\"go.mod\",\"go.sum\",\"stack.yaml\",\"stack.yaml.lock\",\"pom.xml\",\"build.gradle\",\"build.gradle.kts\",\"settings.gradle\",\"settings.gradle.kts\",\"gradle.properties\",\"package-lock.json\",\"yarn.lock\",\"pnpm-lock.yaml\",\"npm-shrinkwrap.json\",\"requirements.txt\",\"Pipfile\",\"Pipfile.lock\",\"pyproject.toml\",\"setup.py\",\"setup.cfg\",\"Gemfile\",\"Gemfile.lock\",\"uv.lock\",\"AGENTS.md\"],\"protected_path_prefixes\":[\".github/\",\".agents/\"],\"title_prefix\":\"[docs] \"},\"missing_data\":{},\"missing_tool\":{}}"
Comment on lines +8 to 12
"github-agentic-workflows": {
"command": "gh",
"args": ["aw", "mcp-server"],
"cwd": "${workspaceFolder}"
}
Comment on lines +39 to +41
- name: Checkout repository
uses: actions/checkout@v6

tools:
github:
toolsets: [default]
edit:

jobs:
activation:
runs-on: ubuntu-slim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants