Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 12, 2026

Documentation snippets are sourced from C# tests. This adds automated validation that Update-Snippets.ps1 has been run when snippet tests or docs change.

Changes

  • Renamed workflow: codegen-validation.ymlintegrity-checks.yml to reflect expanded scope
  • Created composite action: .github/actions/check-uncommitted-changes/action.yml
    • Parameterized error message
    • Checks both tracked changes (git diff) and untracked files
  • Refactored existing jobs: validate-codegen and validate-api-export now use composite action (eliminates 30+ lines of duplication)
  • Added validate-snippets job:
    • Runs Update-Snippets.ps1
    • Fails if uncommitted changes detected
    • Triggers on changes to tests/Snippets/**, README.md, or the update script

Workflow trigger paths updated

paths:
  - '.github/workflows/integrity-checks.yml'  # was codegen-validation.yml
  - 'tests/Snippets/**'                       # new
  - 'README.md'                               # new
  - 'scripts/Update-Snippets.ps1'            # new

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add snippet validation job to workflow Add snippet validation to integrity checks workflow Feb 12, 2026
Copilot AI requested a review from joseharriaga February 12, 2026 04:23
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