Skip to content

Infra: Add GitHub Copilot and openspec files to .gitignore#16778

Open
turboFei wants to merge 1 commit into
apache:mainfrom
turboFei:agents
Open

Infra: Add GitHub Copilot and openspec files to .gitignore#16778
turboFei wants to merge 1 commit into
apache:mainfrom
turboFei:agents

Conversation

@turboFei

@turboFei turboFei commented Jun 11, 2026

Copy link
Copy Markdown
Member

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 — .gitignore change only.

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.
@github-actions github-actions Bot added the INFRA label Jun 11, 2026
@turboFei turboFei changed the title Build: Add GitHub Copilot and openspec files to .gitignore Infra: Add GitHub Copilot and openspec files to .gitignore Jun 11, 2026
Comment thread .gitignore
.claude/

# For GitHub Copilot
.github/copilot-instructions.md

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

.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.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants