Prevent Copilot from running dotnet format in PRs#52989
Merged
marcpopMSFT merged 2 commits intorelease/10.0.1xxfrom Feb 12, 2026
Merged
Prevent Copilot from running dotnet format in PRs#52989marcpopMSFT merged 2 commits intorelease/10.0.1xxfrom
marcpopMSFT merged 2 commits intorelease/10.0.1xxfrom
Conversation
Co-authored-by: marcpopMSFT <12663534+marcpopMSFT@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update copilot instructions to prevent format execution
Prevent Copilot from running dotnet format in PRs
Feb 11, 2026
marcpopMSFT
approved these changes
Feb 11, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the repository’s Copilot contribution instructions to prevent automated formatting runs that can introduce unrelated file churn, keeping PRs focused on the intended changes.
Changes:
- Removed guidance to run
dotnet format, commit formatting-only changes, and update.git-blame-ignore-revs. - Added an explicit rule to only edit necessary files and avoid formatting changes outside the specific issue being addressed.
tmat
approved these changes
Feb 11, 2026
Member
|
/ba-g no checks to run |
This was referenced Feb 26, 2026
This was referenced Mar 11, 2026
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.
Running
dotnet formaton a project edits additional files beyond those needed to address a specific issue, causing unwanted changes in PRs.Changes
dotnet format, commit format changes, and update.git-blame-ignore-revsdotnet formator make formatting changes to additional files."This ensures Copilot makes surgical changes to only the files required to address specific issues.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.