Skip to content

Add .github/ai-gate.yml for the AI review gate - #723

Merged
alex-clickhouse merged 1 commit into
mainfrom
ai-gate-config
Nov 12, 2026
Merged

alex-clickhouse merged 1 commit into
mainfrom
ai-gate-config

Conversation

@Flipmonster

@Flipmonster Flipmonster commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Adds .github/ai-gate.yml. With this file in place, a pull request whose Cursor Bugbot review is clean is approved automatically, so it doesn't wait for a reviewer.

  • Forks still need a maintainer. A pull request from a fork, which is how outside contributions arrive, never gets an automated approval.
  • Some files always need a person. That's workflows, actions, CODEOWNERS, the Cursor configuration and this file, whatever the review says.
  • This file does nothing on its own. Auto-approval also has to be switched on for the repository centrally.
  • To turn it off, delete this file.

Note

Low Risk
Adds CI/review automation config only; no application or security logic changes.

Overview
Adds .github/ai-gate.yml so this repo can use automated PR approval when Cursor Bugbot finishes a clean review (reviewers: [bugbot]). Without it, the gate still runs but a human must approve.

This is opt-in configuration only; organization/repo settings still control whether auto-approval is active, and the PR description notes forks and sensitive paths (workflows, CODEOWNERS, etc.) stay human-gated.

Reviewed by Cursor Bugbot for commit 76a48e8. Bugbot is set up for automated code reviews on this repo. Configure here.

Copilot AI balanced review requested due to automatic review settings November 12, 2026 11:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔵 Needs a closer look

A maintainer must verify the configuration contract and enforcement of fork and sensitive-path exclusions because the centralized auto-approval gate and repository settings are unavailable for review.

No open issues 🎉

What changed in this PR

Adds repository-level configuration for the AI review gate to automatically approve eligible pull requests after a clean Cursor Bugbot review, when centrally enabled. Neither the HTTP nor TCP client is changed.

Changes:

  • Selects Bugbot as the gate’s reviewer with reviewers: [bugbot].
  • Adds comments explaining the opt-in behavior and human-approval fallback when the file is absent.
File Description
.github/​ai-gate.yml Adds the AI review gate opt-in configuration and explanatory comments.

Review effort: Balanced

@alex-clickhouse
alex-clickhouse merged commit c8f641a into main Nov 12, 2026
2 checks passed
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.

3 participants