create-pr

Create GitHub pull requests from the current branch to main using git and gh.

298|70|Updated Nov 4, 2020
One-click install
npx skills add https://github.com/microsoft/powerplatform-build-tools --skill create-pr-microsoft
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-pr
Source: https://github.com/microsoft/powerplatform-build-tools/tree/main/.claude/skills/create-pr
Command: npx skills add https://github.com/microsoft/powerplatform-build-tools --skill create-pr-microsoft

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Stage, commit, push, and automatically create GitHub pull requests for the current branch — always main, then automatically cherry-picks to release/stable.

Core Features & Use Cases

  • Main PR automation: creates a PR against the main branch from the current branch.
  • Cherry-pick propagation: automatically cherry-picks commits to release/stable per the workflow.
  • CLI-driven templates: supports templated PR bodies and titles using GitHub CLI (gh) for consistent PRs across environments.
  • Use Case: A developer finishes work on a feature branch and needs a main PR while ensuring release/stable gets the same changes via cherry-picks.

Quick Start

Stage changes, commit with a descriptive message, push to origin, and let the tool create the main PR and automatically cherry-pick to release/stable.

Frequently Asked Questions about create-pr

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate GitHub pull request creation from my current branch to main?

To automate GitHub pull request creation, you can use a CLI-driven process with git and GitHub CLI (gh) that collects commit SHAs and generates a PR from your current branch directly to the main branch.

How do I automatically cherry-pick commits to release and stable branches after a PR?

To automatically cherry-pick commits to release and stable branches, an automated workflow applies your current branch changes to main and then propagates those same commits via cherry-picks to the target release branches.

Can I use the GitHub CLI to generate consistent PR titles and bodies across environments?

Yes, you can use the GitHub CLI (gh) to generate consistent PR titles and bodies by applying CLI-driven templates, ensuring uniform pull request structures across different development environments.

Do I need to push my feature branch to origin before automatically creating a pull request?

Yes, you need to stage changes, commit with a descriptive message, and push your feature branch to origin before triggering the tool to automatically create the main PR and execute cherry-picks.

What is the best way to manage branch propagation when changes must be proposed on main first?

The best way to manage branch propagation is using a CLI-driven workflow that creates a PR against main first, then automatically cherry-picks the same commit SHAs to your release and stable branches.

Why does my automated PR workflow require applying changes to main before release branches?

Your automated PR workflow requires changes on main first to establish a consistent base, which then allows the system to accurately track commit SHAs and propagate them via cherry-picks to release and stable branches.