Skip to content

Adding instructions to the Code Review agent#31

Merged
aaronpowell merged 1 commit into
mainfrom
code-review-instructions
Jul 3, 2025
Merged

Adding instructions to the Code Review agent#31
aaronpowell merged 1 commit into
mainfrom
code-review-instructions

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

Copilot AI review requested due to automatic review settings July 3, 2025 00:30

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

This PR adds a new Copilot instructions file with custom code review rules:

  • Validate that README.md changes align with the PR
  • Enforce single-quoted front matter values and non-empty description
  • Require an applyTo property in front matter for .instructions.md files

@@ -0,0 +1,7 @@
When performing a code review, validate that there are changes in the `README.md` file that match the changes in the pull request. If there are no changes, or if the changes do not match, then the pull request is not ready to be merged.

Copilot AI Jul 3, 2025

Copy link

Choose a reason for hiding this comment

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

This instructions file lacks the required YAML front matter with an applyTo property. Without it, Copilot Code Review won’t know which files these rules should apply to. Please add front matter at the top specifying something like:

---
applyTo: ['.github/copilot-instructions.md']
---

Copilot uses AI. Check for mistakes.

When performing a code review, ensure that the `description` field in the front matter is not empty.

When performing a code review on a `.instructions.md` file, ensure there is an `applyTo` property in the front matter that specifies the file or files to which the instructions apply.

Copilot AI Jul 3, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The rule refers to .instructions.md files, but this file is named copilot-instructions.md. Consider updating the pattern or the instruction text so the file naming convention matches (e.g., use .copilot-instructions.md in the rule).

Suggested change
When performing a code review on a `.instructions.md` file, ensure there is an `applyTo` property in the front matter that specifies the file or files to which the instructions apply.
When performing a code review on a `copilot-instructions.md` file, ensure there is an `applyTo` property in the front matter that specifies the file or files to which the instructions apply.

Copilot uses AI. Check for mistakes.
@aaronpowell aaronpowell merged commit 3743b97 into main Jul 3, 2025
3 checks passed
@aaronpowell aaronpowell deleted the code-review-instructions branch July 3, 2025 01:20
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.

2 participants