How to ban Copilot from GitHub repo? #197931
Replies: 6 comments 6 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.
-
|
GitHub Copilot isn't a regular GitHub user account, so it can't be blocked using the Block user feature. If Copilot is posting PR reviews, it's typically because a repository administrator or organization owner has enabled Copilot code review or another GitHub Copilot feature for that repository. If your repository has a policy against AI-generated content or AI-assisted reviews, a repository administrator can disable Copilot's review functionality in the repository settings (or at the organization level, if it's managed there). If you don't have administrative access to the repository, you'll need to ask the repository owner or organization administrator to disable the feature. If you're seeing Copilot reviews even though you believe the feature is disabled, it would be helpful to share: Whether the repository is personal or belongs to an organization. With that information, the community can help determine why Copilot is still participating in PR reviews. |
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