Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 28, 2026

Adds a second job to codegen-validation.yml that runs Export-Api.ps1 and verifies API outputs remain clean.

Changes

  • New validate-api-export job: Checkout → .NET setup → run Export-Api.ps1 → verify no uncommitted changes
  • Shared error message: Both git diff and untracked file checks use the same message instructing to rerun Export-Api.ps1 locally
  • Expanded trigger paths: Added api/**, Directory.Build.targets, and scripts/Export-Api.ps1

Error output example

::error::API export produced changes. Please run './scripts/Export-Api.ps1' locally and commit the results.

Jobs run in parallel. workflow_dispatch remains enabled.

Original prompt

Plan: Add API export validation job

Add a second job to the existing codegen-validation.yml workflow that runs Export-Api, then verifies api outputs remain clean. Keep workflow_dispatch enabled, expand trigger paths for API inputs/outputs, and use a single shared error message for both diffs and untracked files.

Steps

  1. Add a new job “Export API Validation” in codegen-validation.yml.
  2. Configure checkout, .NET setup, and run Export-Api.ps1 in that job.
  3. Add a git diff check for tracked changes using the shared API error message.
  4. Add an untracked files check that reuses the same shared API error message.
  5. Update workflow trigger paths to include api outputs and Directory.Build.targets.

Further Considerations

  1. Confirm whether to keep the untracked check or drop it for simplicity.
  2. Ensure the shared error message explicitly instructs rerunning Export-Api locally.
  3. Verify any additional trigger inputs you want beyond api outputs and build targets.

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI changed the title [WIP] Add Export API validation job to codegen workflow Add API export validation job to codegen-validation workflow Jan 28, 2026
Copilot AI requested a review from joseharriaga January 28, 2026 23:22
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