Skip to main content
Skip to content

Content exclusion for GitHub Copilot

You can prevent Copilot from accessing certain files.

Quem pode usar esse recurso?

Organizações e empresas com um plano do Copilot Business ou Copilot Enterprise.

About content exclusion for Copilot

You can use content exclusion to configure Copilot to ignore certain files. When you exclude content from Copilot:

  • Inline suggestions will not be available in the affected files.
  • The content in affected files will not inform inline suggestions in other files.
  • The content in affected files will not inform Copilot's responses.
  • Affected files will not be reviewed in a Copilot code review.

Who can configure content exclusion

Repository administrators, organization owners, and enterprise owners can configure content exclusion.

  • Os administradores de repositório só podem excluir conteúdo dos próprios repositórios. Isso afeta usuários do Copilot na empresa que trabalham nesses repositórios específicos.

  • Os proprietários da organização podem excluir conteúdo para usuários atribuídos a uma estação do Copilot por meio de sua organização.

  • Os proprietários de empresas podem aplicar regras de exclusão a todos os usuários do Copilot da empresa.

Availability of content exclusion

The Copilot Business and Copilot Enterprise plans provide the following level of support for content exclusion.

ToolInline suggestions supportChat and agent support
Visual Studio
Visual Studio CodeChat:
Edit:
Agent:
JetBrains IDEs
Vim/NeovimNot applicable
Xcode
Eclipse
Azure Data StudioNot applicable
The GitHub websiteNot applicable
GitHub MobileNot applicable
GitHub Copilot appNot applicable
GitHub Copilot CLINot applicable

Content exclusions also apply to Copilot code review on the GitHub website.

Observação

  • Content exclusion is in prévia pública on the GitHub website and in GitHub Mobile and is subject to change.
  • Content exclusion is currently not supported in Edit and Agent modes of Copilot Chat in Visual Studio Code and other editors.

Limitations of content exclusion

É possível que o Copilot use informações semânticas de um arquivo excluído se as informações forem fornecidas pelo IDE indiretamente. Exemplos desse conteúdo incluem informações de tipo e definições de focalização para símbolos usados no código, bem como propriedades gerais do projeto, como informações da configuração de build.

Currently, content exclusions do not apply to symbolic links (symlinks) and repositories located on remote filesystems.

Data sent to GitHub

After you configure content exclusion, the client (for example, the Copilot extension for VS Code) sends the current repository URL to the GitHub server so that the server can return the correct policy to the client. These URLs are not logged anywhere.

Further reading