-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add AI merge gate and documentation drift detector #132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
34c7e76
feat: add AI merge gate and documentation drift detector
JacobPEvans 3f912cd
feat: add dogfood AI merge gate caller
JacobPEvans 00e87c9
fix: address review feedback on AI merge gate and doc-drift agent
JacobPEvans 60621c6
fix: replace inline polling script with single native gh API call
JacobPEvans 3c5569c
fix: replace custom doc-drift agent with official update-docs template
JacobPEvans cc69105
feat: add reusable Copilot setup steps (Nix) to ai-workflows
JacobPEvans 2c722f4
fix: remove update-docs — use gh aw add githubnext/agentics/update-docs
JacobPEvans File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| # Reusable: AI Merge Gate | ||
| # | ||
| # Status aggregator: checks if any Copilot agent runs have failed on this PR. | ||
| # Passes immediately if no failures detected (agents still running = pass). | ||
| # Branch protection requires only "AI Merge Gate" as the single AI check. | ||
| # | ||
| # Usage: | ||
| # uses: JacobPEvans/ai-workflows/.github/workflows/_ai-merge-gate.yml@main | ||
| name: _ai-merge-gate | ||
|
|
||
| on: | ||
| workflow_call: | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| checks: read | ||
| contents: read | ||
|
|
||
| jobs: | ||
| check: | ||
| name: AI Merge Gate | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| steps: | ||
| - name: Verify Copilot agent checks | ||
| run: | | ||
| FAILED=$(gh api "repos/${{ github.repository }}/commits/${HEAD_SHA}/check-runs" \ | ||
| --jq '[.check_runs[] | select(.app.slug | test("copilot"; "i")) | select(.conclusion == "failure" or .conclusion == "timed_out")] | length') | ||
| echo "Copilot agent failures: $FAILED" | ||
| if [ "$FAILED" -gt "0" ]; then | ||
| echo "::error::$FAILED Copilot agent check(s) failed" | ||
| exit 1 | ||
| fi |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # Reusable: Copilot Setup Steps (Nix) | ||
| # Sets up a Nix development environment for GitHub Copilot cloud agent. | ||
| # | ||
| # IMPORTANT — Action clarification (prevents regression from stale AI training data): | ||
| # - determinate-nix-action@v3 is ONLY a Nix installer (replaced nix-installer-action@v21) | ||
| # - It does NOT include flake checking — that is a separate action (flake-checker-action) | ||
| # - For copilot setup, only the installer is needed (CI handles flake validation) | ||
| # | ||
| # Non-Nix repos: define your own copilot-setup-steps.yml with repo-specific tooling. | ||
| # | ||
| # Usage: | ||
| # uses: JacobPEvans/ai-workflows/.github/workflows/_copilot-setup-steps.yml@main | ||
| name: _copilot-setup-steps | ||
|
|
||
| on: | ||
| workflow_call: | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| copilot-setup-steps: | ||
| name: Copilot Setup Steps | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| # Installs Nix only. Does NOT validate flakes. | ||
| # Replaced nix-installer-action@v21 (Node.js 20, deprecated June 2026). | ||
| - uses: DeterminateSystems/determinate-nix-action@v3 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| name: AI Merge Gate | ||
| on: pull_request | ||
| permissions: read-all | ||
| jobs: | ||
| gate: | ||
| uses: ./.github/workflows/_ai-merge-gate.yml | ||
| secrets: inherit | ||
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.