Skip to content

Conversation

@Monzingo89
Copy link
Contributor

Here the documentation states that copilot will not be able to edit specific excluded files that are configured. The next sentence then states it will “not” ignore them and it will have the ability to see and update them. I’ve fixed this contradiction so that now the documentation make sense.

Why:

Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • A subject matter expert (SME) has reviewed the technical accuracy of the content in this PR. In most cases, the author can be the SME. Open source contributions may require an SME review from GitHub staff.
  • The changes in this PR meet the docs fundamentals that are required for all content.
  • All CI checks are passing and the changes look good in the review environment.

Here the documentation states that copilot will not be able to edit specific excluded files that are configured. The next sentence then states it will “not” ignore them and it will have the ability to see and update them. I’ve fixed this contradiction so that now the documentation make sense.
Copilot AI review requested due to automatic review settings October 22, 2025 09:46
@welcome
Copy link

welcome bot commented Oct 22, 2025

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR corrects a contradiction in the documentation regarding how Copilot Coding Agent handles content exclusions. The fix clarifies that when content exclusions are configured, Copilot will properly ignore those files and not be able to see or update them, rather than the previous incorrect statement that it would "not ignore" them.

  • Corrected the contradictory statement about content exclusions behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Oct 22, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 22, 2025

How to review these changes 👓

Thank you for your contribution. To review these changes, choose one of the following options:

A Hubber will need to deploy your changes internally to review.

Table of review links

Note: Please update the URL for your staging server or codespace.

The table shows the files in the content directory that were changed in this pull request. This helps you review your changes on a staging server. Changes to the data directory are not included in this table.

Source Review Production What Changed
copilot/concepts/agents/coding-agent/about-coding-agent.md fpt
ghec
fpt
ghec

Key: fpt: Free, Pro, Team; ghec: GitHub Enterprise Cloud; ghes: GitHub Enterprise Server

🤖 This comment is automatically generated.

kavinesquire-lgtm

This comment was marked as spam.

@Sharra-writes
Copy link
Contributor

@Monzingo89 Let me make sure this wasn't some badly worded warning about what excluding files is incapable of doing (ingrained wariness from dealing with gitignore and trying to explain what it actually does), and hopefully I can then just accept these edits since they definitely appear to make sense.

@Sharra-writes
Copy link
Contributor

@Monzingo89 Okay, that's what I was afraid of. What the sentence is trying to say is that Copilot coding agent specifically will not ignore the files you've configured Copilot to ignore, but it's not just coding agent. Agent mode in Copilot Chat in IDEs and Copilot CLI also don't follow the restrictions. Those don't appear relevant for this article, though. I'm going to see if I can update the language to be a little clearer.

@Sharra-writes Sharra-writes added this pull request to the merge queue Oct 22, 2025
Merged via the queue into github:main with commit 016b45a Oct 22, 2025
40 checks passed
@github-actions
Copy link
Contributor

Thanks very much for contributing! Your pull request has been merged 🎉 You should see your changes appear on the site in approximately 24 hours. If you're looking for your next contribution, check out our help wanted issues

@wingyi181

This comment was marked as spam.

@Monzingo89
Copy link
Contributor Author

Monzingo89 commented Oct 22, 2025 via email

@Sharra-writes
Copy link
Contributor

@Monzingo89 The ignore configuration just doesn't work with coding agent, agent mode in an IDE, or Copilot CLI. If you follow the "read more" link at the end, it says so in a box at the top. I'm not an engineer and can't explain why, but I'm pretty sure the wrong variable was just used at the beginning of that little section. The other sections mostly use the variable for coding agent, and the whole thing makes sense as-is if you just change the variable, and also fits with what the "more information" link says.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triage Do not begin working on this issue until triaged by the team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants