Infra: Add GitHub Copilot and openspec files to .gitignore#16778
Open
turboFei wants to merge 1 commit into
Open
Infra: Add GitHub Copilot and openspec files to .gitignore#16778turboFei wants to merge 1 commit into
turboFei wants to merge 1 commit into
Conversation
GitHub Copilot agent configuration files (.github/copilot-instructions.md, .github/agents/, .github/instructions/, .github/prompts/, .github/skills/) are user-specific workspace configurations that should not be tracked in the shared repository. Similarly, openspec/ is a local workspace directory that should be excluded.
wombatu-kun
reviewed
Jun 12, 2026
| .claude/ | ||
|
|
||
| # For GitHub Copilot | ||
| .github/copilot-instructions.md |
Contributor
There was a problem hiding this comment.
.github/copilot-instructions.md is GitHub's repository-wide Copilot instructions file, designed to be committed and shared (the Copilot peer of the tracked AGENTS.md), unlike a purely local workspace directory. Ignoring it would silently keep a future shared instructions file (for example one pointing contributors at AGENTS.md) out of git add. If keeping even a repo-level instructions file untracked is the intent here, this is fine as-is; otherwise consider dropping just this line while still ignoring the workspace dirs below.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
Add GitHub Copilot agent configuration files and
openspec/directory to.gitignore.The following paths are added:
.github/copilot-instructions.md.github/agents/.github/instructions/.github/prompts/.github/skills/openspec/Why are the changes needed?
GitHub Copilot's agent/instruction/prompt/skill files are user-specific or workspace-specific configurations that individual developers create locally to customize Copilot's behavior. They should not be tracked in the shared repository, similar to how Apache Spark handled this in SPARK-50935.
The
openspec/directory is a local workspace tool directory that also should be excluded from version control.Does this PR introduce any user-facing change?
No.
How was this patch tested?
N/A —
.gitignorechange only.