How do I disable GitHub Copilot suggestions in only one specific repository? #180848
-
Select Topic AreaQuestion Copilot Feature AreaCopilot in GitHub BodyI have GitHub Copilot enabled at the organization level, which applies to all repositories by default. I want to turn off Copilot completely for just one private repository because the code style is very specific, and the suggestions are actively unhelpful. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
I found the solution! The setting isn't in the main "Settings" tab for the repository. It is managed under the GitHub Copilot specific administration area within the repository settings. |
Beta Was this translation helpful? Give feedback.
-
|
Hey, can you accept this answer? |
Beta Was this translation helpful? Give feedback.
I found the solution! The setting isn't in the main "Settings" tab for the repository. It is managed under the GitHub Copilot specific administration area within the repository settings.
Here is how to do it:
Navigate to your repository's main page.
Click on the Settings tab.
In the left sidebar, scroll down and click on GitHub Copilot under the "Code and automation" section.
There is a setting there to "Enable GitHub Copilot" at the repository level. Uncheck this box.
Click the Save button.
This overrides the organization-level setting just for that single repository.