Add a backport prompt for copilot#26383
Merged
TravisEz13 merged 6 commits intoPowerShell:masterfrom Nov 5, 2025
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive documentation for backporting changes to PowerShell release branches. The guide is designed for AI models to assist maintainers with the backporting process.
- Provides step-by-step instructions for manual and automated backporting workflows
- Documents the use of PowerShell tools like
Invoke-PRBackportfor backporting PRs - Includes PR templates, naming conventions, and troubleshooting guidance
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
adityapatwardhan
approved these changes
Nov 5, 2025
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
kilasuit
pushed a commit
to kilasuit/PowerShell
that referenced
this pull request
Jan 2, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Copilot prompt guide for backporting PRs to release branches
This PR introduces a comprehensive guide for GitHub Copilot to assist with backporting changes to PowerShell release branches. The prompt provides step-by-step instructions, best practices, and automated workflows for creating backport PRs.
What's Added
New File:
.github/prompts/backport-pr-to-release-branch.prompt.mdKey Features
1. Automated PR Discovery
2. Pre-flight Checks
3. Smart Conflict Resolution
4. Structured PR Creation
[release/v7.x] <original-title>5. Manual Backport Tools
Invoke-PRBackportPowerShell functionInvoke-PRBackportApproved6. Cleanup and Validation
Benefits
Testing
This prompt was tested by successfully backporting PR #26281 to the release/v7.4 branch, which included:
build.psm1Related Work
tools/releaseTools.psm1docs/maintainers/releasing.mdNote: This is a Copilot prompt file (
.prompt.md) that GitHub Copilot can use when users ask for help with backporting. It doesn't affect the codebase directly but provides structured guidance for AI-assisted backporting tasks.