add Copilot PR review instructions#19738
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a .github/copilot-instructions.md file to guide GitHub Copilot's automated pull request reviews for the NVDA codebase. The goal is to improve the quality and relevance of Copilot's review feedback by codifying NVDA-specific review goals, Python coding standards, PR checklist expectations, security checks, and comment style guidelines.
Changes:
- Adds a new
.github/copilot-instructions.mdfile instructing Copilot on NVDA-specific review priorities, Python style conventions, PR checklist expectations, security checks, and preferred comment style.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Are you sure that the Copilot agent can read the files mentioned in the instructions? From what I know, the agent will only be able to read files that are touched by the pull request itself and not others. For this, we have to include the content of the needed files in the instructions, or a summary of them, including the most important information, or direct links, assuming the agent has the ability to browse context links, which is not always the case. |
|
@makhlwf - the PR includes a summary of the most important information. My understanding is the agent does gain wider context from your repo in general training, but the reviews themselves only check necessary related files. The agent does have to know about the rest of your repo to perform reviews already. |
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
Co-authored-by: gerald-hartig <153188145+gerald-hartig@users.noreply.github.com>
|
Thanks @XLTechie for your review - I think I've restructured this in a better way now |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
|
@seanbudd I'm working for the next several hours; should be able to review this evening (it's 6:30 in the morning here now).
|
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
|
I'm going to merge this for now. |
bad line endings were merged in #19738
Link to issue number:
None
Summary of the issue:
CoPilot PR reviews and agent work can be improved by writing instructions files.
This can minimize the work of NV Access, by automating some common review feedback we create.
Description of user facing changes:
None
Description of developer facing changes:
Improved CoPilot review instructions.
Fixed up user guide standards issues
Description of development approach:
Used CoPilot to generate, edited
Copied sections from other human facing docs and edited to simplify
Testing strategy:
None
Known issues with pull request:
None
Code Review Checklist: