How to ban Copilot from GitHub repo? #197931
Replies: 5 comments 5 replies
-
|
See also https://webapps.stackexchange.com/questions/182412/how-to-ban-copilot-from-github-repo |
Beta Was this translation helpful? Give feedback.
-
|
Hey @maltfield 👋🏻 Copilot code review is a GitHub platform feature, not a regular user account, which is why To prevent Copilot from reviewing PRs in your repository, you have a few options: If you own the repository:
If you're an organization or enterprise admin:
For full details on configuring or disabling automatic code review: For blocking Copilot code review at the enterprise level: If Copilot reviewed a PR without anyone in your repo requesting it, it's likely because the PR author has automatic reviews enabled on their personal Copilot plan. The enterprise/org-level block will override this for your repositories. I hope that answers your questions! Please let us know if you're able to resolve this or not. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Hey! The "Block user" option doesn't appear for Copilot because it's not a real user account — it's a built-in GitHub feature, so it follows a different set of controls. Here's how to disable it for your repository: 1. Repository Settings → Copilot → Code Review 2. Check your Rulesets (this is a common culprit) 3. If your repo is inside an Organization
Hope that helps enforce your no-AI policy! |
Beta Was this translation helpful? Give feedback.
-
|
I want to block the "user" so that I get a message when the "user" has contributed to any repository, same as any other slop-generating "user" |
Beta Was this translation helpful? Give feedback.
-
|
The reason you don't see the "Block user" option is because Copilot isn't a standard GitHub user account—it is a system-level AI bot integrated into the platform. To completely prevent Copilot from interacting with or reviewing PRs in your repository, you need to turn it off in your settings rather than trying to block the user. How to disable it:
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Copilot in GitHub
Body
How can I ban the user named
Copilotfrom being able to access or make contributions to our GitHub repository?Recently, I had a user submit a PR to a GitHub repo that I own. And then, some very dumb user named
Copoilotjust swooped into the conversation and did a code review of the PR.Our repo has a policy explicitly forbidding content generated from AI.
I tried to click on the three-dot-menu next to the
Copilotuser's spam, but theBlock userbutton was surprisingly missing?!?How do I Block the Copilot user from my GitHub repo?
Beta Was this translation helpful? Give feedback.
All reactions