pr

Push the current branch and create a GitHub pull request.

Updated Feb 28, 2019
One-click install
npx skills add https://github.com/rjschie/dotfiles --skill pr-rjschie
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pr
Source: https://github.com/rjschie/dotfiles/tree/main/files/claude/skills/pr
Command: npx skills add https://github.com/rjschie/dotfiles --skill pr-rjschie

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, gh, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of pushing the current branch and opening a pull request on GitHub, saving time and reducing manual errors.

Core Features & Use Cases

  • Branch Push and PR Creation: Automates the entire process of pushing the current branch to the remote repository and creating a pull request.
  • User-Supplied Title and Body: Incorporates user-specified titles and additional context into the PR creation process.
  • Error Handling: Checks for default branches and uncommitted changes before proceeding with the push and PR creation.

Quick Start

To create a pull request, use the command: /pr "Your PR Title" "Your PR Body".

Frequently Asked Questions about pr

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

FAQPage Schema
How do I automate GitHub pull request creation from the command line?

Automate GitHub pull request creation by using a command that pushes your current Git branch and opens a PR with a user-splied title and body. This handles the entire branch push and PR generation process automatically.

How do I push a branch and create a pull request in one step?

Push a branch and create a pull request in one step by executing a single command that pushes the current branch to the remote repository and immediately opens a GitHub pull request, incorporating your provided title and body context.

Do I need git and gh installed to automate PR creation?

Yes, you need both git and gh installed to automate PR creation. The process requires the git command for branch pushing and the gh command for repository interaction to successfully open the pull request on GitHub.

Will creating a pull request fail if I have uncommitted changes?

Creating a pull request will fail if you have uncommitted changes. The automation includes error checking that detects uncommitted changes and default branches before proceeding with the branch push and pull request generation.

Can I supply a custom title and body when automating a GitHub pull request?

Yes, you can supply a custom title and body when automating a GitHub pull request. The command accepts user-specified titles and additional context strings, which are directly incorporated into the final pull request creation on GitHub.

What happens if I try to create a pull request on a default branch?

If you try to create a pull request on a default branch, the operation is blocked. The automation features error checking for default branches to prevent accidental pushes and invalid pull requests against the primary repository branch.