-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Extract enhanced copilot instructions from PR #30300 #30304
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
Conversation
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
|
Update the instructions so that you will always come up with your own solution first without looking at other PRs, then you will look for open PRs and compare what you came up to existing PRs. Once you pick which option you like better, always make sure to report on why you didn't go with the other solutions |
… PRs Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Updated the workflow as requested. The instructions now require developing your own solution first without looking at existing PRs, then searching for and comparing with existing PRs, and always documenting why you chose one approach over others. The critical requirement warning has been updated to reflect this new workflow. Commit: 6f887b02 |
There was a problem hiding this 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 extracts and applies enhanced instructions for handling existing pull requests for assigned issues in the .NET MAUI repository to ensure contributors follow a clear, structured workflow.
- Introduces a new "Handling Existing PRs for Assigned Issues" section with a critical requirement warning.
- Reorganizes the instructions so that the new guidelines appear immediately after the "Contribution Guidelines" header.
- Removes duplicate older guidance in favor of a comprehensive, step-by-step approach.
Comments suppressed due to low confidence (1)
.github/copilot-instructions.md:157
- [nitpick] Consider clarifying the rationale behind 'develop your own solution first' to prevent potential misinterpretation by contributors who might otherwise prioritize independent work over collaborative review.
**🚨 CRITICAL REQUIREMENT: Always develop your own solution first, then compare with existing PRs.**
|
If you like the other solution more pull those changes into your PR and then find areas to improve and add tests |
…mproving them Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Updated step 8 to explicitly mention pulling existing PR changes when you prefer them and finding areas to improve and add tests. Commit: 07fe5be |
Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
* Initial plan * Extract enhanced copilot instructions from PR #30300 Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Update workflow to develop solution first, then compare with existing PRs Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Update step 8 to explicitly mention pulling existing PR changes and improving them Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Remove duplicate step 10 as requested in review feedback Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
) * Initial plan * Extract enhanced copilot instructions from PR dotnet#30300 Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Update workflow to develop solution first, then compare with existing PRs Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Update step 8 to explicitly mention pulling existing PR changes and improving them Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> * Remove duplicate step 10 as requested in review feedback Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: PureWeen <5375137+PureWeen@users.noreply.github.com>
Note
Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!
Description
This PR extracts and applies the enhanced copilot instructions from PR #30300 to improve guidance for coding agents working on the .NET MAUI repository.
Changes Made
Enhanced "Handling Existing PRs for Assigned Issues" Section
The key improvements extracted from PR #30300 include:
Added critical requirement warning with 🚨 emoji for maximum visibility:
New mandatory first step that requires searching for existing PRs before starting any implementation work:
Better organization by moving the section to appear earlier in the document (right after "Contribution Guidelines" header) for improved visibility
Enhanced step-by-step guidance with steps renumbered 1-10 for clarity and better structure
Removed duplicate content by consolidating the old section that appeared later in the document
Benefits
These enhanced instructions help ensure that:
Testing
The changes have been validated to ensure:
Fixes #30303.
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.