Skip to content

Add Copilot CLI settings.local.json to .gitignore - #128082

Merged
jeffhandley merged 1 commit into
mainfrom
vcsjones/cpcli-local-ignore
Jul 14, 2026
Merged

jeffhandley merged 1 commit into
mainfrom
vcsjones/cpcli-local-ignore

Conversation

@vcsjones

Copy link
Copy Markdown
Member

Copilot CLI has an additional configuration file called "local repository" that allows configuration to override a repository's configuration, but should not be checked in.

From the docs:

Create .github/copilot/settings.local.json in the repository for personal overrides that should not be committed. Add this file to .gitignore.

The local configuration file uses the same schema as the repository configuration file (.github/copilot/settings.json) and takes precedence over it.

Copilot AI review requested due to automatic review settings May 12, 2026 14:23

Copilot AI left a comment

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.

Copilot wasn't able to review any files in this pull request.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/runtime-infrastructure
See info in area-owners.md if you want to be subscribed.

@github-actions

Copy link
Copy Markdown
Contributor

Caution

Security scanning requires review for Code Review

Details

The threat detection results could not be parsed. The workflow output should be reviewed before merging.

Review the workflow run logs for details.

Note

This review was generated by Copilot.

🤖 Copilot Code Review — PR #128082

Holistic Assessment

Motivation: The PR is well-justified. The Copilot CLI documentation explicitly recommends adding settings.local.json to .gitignore for personal overrides that should not be committed.

Approach: Adding the path to .gitignore is the correct and only approach needed.

Summary: ✅ LGTM. This is a minimal, correct change that follows the documented recommendation for Copilot CLI local configuration. No code, tests, or behavior are affected.


Detailed Findings

✅ Correctness — Path and placement are correct

The ignored path .github/copilot/settings.local.json matches the documented location. The entry is appended at the end of the file with an appropriate comment, consistent with other sections in the .gitignore.

Generated by Code Review for issue #128082 · ● 1.5M · ◷

@jeffhandley
jeffhandley merged commit 4651463 into main Jul 14, 2026
164 of 166 checks passed
@jeffhandley
jeffhandley deleted the vcsjones/cpcli-local-ignore branch July 14, 2026 02:04
eiriktsarpalis pushed a commit that referenced this pull request Jul 15, 2026
Copilot CLI has an additional configuration file called "local
repository" that allows configuration to override a repository's
configuration, but should not be checked in.

From [the
docs](https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-config-dir-reference#local-settings-githubcopilotsettingslocaljson):

> Create .github/copilot/settings.local.json in the repository for
personal overrides that should not be committed. Add this file to
.gitignore.

> The local configuration file uses the same schema as the repository
configuration file (.github/copilot/settings.json) and takes precedence
over it.
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants