Skip to content

add Copilot PR review instructions#19738

Merged
seanbudd merged 22 commits intomasterfrom
addCopilotPRReviewInstructions
Apr 21, 2026
Merged

add Copilot PR review instructions#19738
seanbudd merged 22 commits intomasterfrom
addCopilotPRReviewInstructions

Conversation

@seanbudd
Copy link
Copy Markdown
Member

@seanbudd seanbudd commented Mar 3, 2026

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:

  • Documentation:
    • Change log entry
    • User Documentation
    • Developer / Technical Documentation
    • Context sensitive help for GUI changes
  • Testing:
    • Unit tests
    • System (end to end) tests
    • Manual testing
  • UX of all users considered:
    • Speech
    • Braille
    • Low Vision
    • Different web browsers
    • Localization in other languages / culture than English
  • API is compatible with existing add-ons.
  • Security precautions taken.

Copilot AI review requested due to automatic review settings March 3, 2026 06:21
@seanbudd seanbudd requested a review from a team as a code owner March 3, 2026 06:21
Copy link
Copy Markdown
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

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.md file 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.

Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
@makhlwf
Copy link
Copy Markdown
Contributor

makhlwf commented Mar 4, 2026

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.

@seanbudd
Copy link
Copy Markdown
Member Author

seanbudd commented Mar 4, 2026

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

Comment thread .github/copilot-instructions.md Outdated
Copy link
Copy Markdown
Member

@SaschaCowley SaschaCowley left a comment

Choose a reason for hiding this comment

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

Some minor suggestions.

Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
@SaschaCowley SaschaCowley marked this pull request as draft March 5, 2026 07:38
Comment thread .github/copilot-instructions.md Outdated
Comment thread .github/copilot-instructions.md Outdated
@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Mar 5, 2026
seanbudd and others added 3 commits March 6, 2026 16:18
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
@seanbudd seanbudd requested a review from michaelDCurran March 6, 2026 05:31
@seanbudd seanbudd marked this pull request as ready for review March 6, 2026 05:40
Comment thread .github/copilot-instructions.md Outdated
seanbudd and others added 2 commits March 10, 2026 13:01
Co-authored-by: gerald-hartig <153188145+gerald-hartig@users.noreply.github.com>
Comment thread .github/copilot-instructions.md Outdated
@seanbudd seanbudd removed the request for review from gerald-hartig April 17, 2026 07:49
@seanbudd
Copy link
Copy Markdown
Member Author

Thanks @XLTechie for your review - I think I've restructured this in a better way now

@seanbudd seanbudd marked this pull request as ready for review April 17, 2026 08:53
@seanbudd seanbudd requested review from XLTechie and Copilot April 17, 2026 08:53
Copy link
Copy Markdown
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

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.

Comment thread .github/instructions/python.instructions.md
Comment thread .github/instructions/python.instructions.md Outdated
Comment thread projectDocs/dev/codingStandards.md
Comment thread .github/instructions/userGuide.instructions.md
Comment thread .github/instructions/userGuide.instructions.md Outdated
Comment thread .github/instructions/python.instructions.md
seanbudd and others added 3 commits April 17, 2026 18:59
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@seanbudd seanbudd requested a review from a team as a code owner April 17, 2026 09:02
@XLTechie
Copy link
Copy Markdown
Collaborator

XLTechie commented Apr 17, 2026 via email

Comment thread .github/instructions/python.instructions.md Outdated
Comment thread .github/instructions/review.instructions.md Outdated
Comment thread .github/instructions/userGuide.instructions.md Outdated
seanbudd and others added 3 commits April 21, 2026 11:25
Co-authored-by: Sascha Cowley <16543535+SaschaCowley@users.noreply.github.com>
@seanbudd seanbudd requested a review from SaschaCowley April 21, 2026 01:26
@seanbudd
Copy link
Copy Markdown
Member Author

I'm going to merge this for now.
@XLTechie - happy to address review feedback in a subsequent PR. I think it might be worth getting this in with a "good" state before a "great" state

@seanbudd seanbudd merged commit 6e24c0f into master Apr 21, 2026
12 checks passed
@seanbudd seanbudd deleted the addCopilotPRReviewInstructions branch April 21, 2026 01:35
@github-actions github-actions Bot added this to the 2026.2 milestone Apr 21, 2026
@seanbudd seanbudd mentioned this pull request Apr 21, 2026
seanbudd added a commit that referenced this pull request Apr 21, 2026
bad line endings were merged in #19738
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants