Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Prevent Copilot from running dotnet format in PRs - #52989

#52989
Merged
marcpopMSFT merged 2 commits into
release/10.0.1xxdotnet/sdk:release/10.0.1xxfrom
copilot/modify-copilot-instructionsdotnet/sdk:copilot/modify-copilot-instructionsCopy head branch name to clipboard
Feb 12, 2026
Merged

Prevent Copilot from running dotnet format in PRs#52989
marcpopMSFT merged 2 commits into
release/10.0.1xxdotnet/sdk:release/10.0.1xxfrom
copilot/modify-copilot-instructionsdotnet/sdk:copilot/modify-copilot-instructionsCopy head branch name to clipboard

Conversation

Copilot AI commented Feb 11, 2026

Copy link
Copy Markdown
Contributor

Running dotnet format on a project edits additional files beyond those needed to address a specific issue, causing unwanted changes in PRs.

Changes

  • Removed instructions directing Copilot to run dotnet format, commit format changes, and update .git-blame-ignore-revs
  • Added explicit instruction: "Only edit the files that are necessary to address the specific issue. Do not run dotnet format or 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.

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
Copilot AI requested a review from marcpopMSFT February 11, 2026 19:51
@marcpopMSFT
marcpopMSFT marked this pull request as ready for review February 11, 2026 21:50
Copilot AI review requested due to automatic review settings February 11, 2026 21:50

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.

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.

@marcpopMSFT

Copy link
Copy Markdown
Member

/ba-g no checks to run

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.