Skip to content

Copilot: Remove the formatting instructions, as they're confusing CCR. #20128

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025

Conversation

aschackmull
Copy link
Contributor

The instructions about formatting was confusing CCR quite a lot. Firstly they caused it to regain confidence in editing QL effectively undoing the instruction above about not reviewing QL (example: #20121 (comment)). Secondly, it mistook the notes about formatting to be relevant for CCR (example: #20127 (comment))

@aschackmull aschackmull added the no-change-note-required This PR does not need a change note label Jul 25, 2025
@Copilot Copilot AI review requested due to automatic review settings July 25, 2025 13:03
Copy link
Contributor

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

This PR removes confusing formatting instructions for CodeQL files from the Copilot instructions to improve code review behavior. The formatting instructions were causing conflicts with existing guidance about not reviewing CodeQL code and were being misinterpreted as relevant to code review rather than code editing.

  • Removes the "When editing .ql and .qll files" section that contained autoformatting instructions
  • Eliminates confusion between code editing and code review instructions
  • Maintains the existing guidance about reviewing .ql/.qll files only for typos and comments

Copy link
Contributor

@geoffw0 geoffw0 left a comment

Choose a reason for hiding this comment

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

OK, lets merge this, and I'll make a new PR to reintroduce a more refined version of the additional instructions when I get around to it.

Are you aware of any way to test the effect of changes on copilot reviews before merging them?

@aschackmull
Copy link
Contributor Author

Are you aware of any way to test the effect of changes on copilot reviews before merging them?

Unfortunately no.

@aschackmull aschackmull merged commit 37b508b into github:main Jul 28, 2025
8 checks passed
@aschackmull aschackmull deleted the ccr/del-formatting-instruction branch July 28, 2025 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-change-note-required This PR does not need a change note
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants