Skip to content

Prevent Copilot from running dotnet format in PRs#52989

Merged
marcpopMSFT merged 2 commits intorelease/10.0.1xxfrom
copilot/modify-copilot-instructions
Feb 12, 2026
Merged

Prevent Copilot from running dotnet format in PRs#52989
marcpopMSFT merged 2 commits intorelease/10.0.1xxfrom
copilot/modify-copilot-instructions

Conversation

Copy link
Contributor

Copilot AI commented Feb 11, 2026

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
Copy link
Contributor

Copilot AI left a comment

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