gh:pr

Create GitHub pull requests from current branch commits with automatic base detection.

Updated May 31, 2025
One-click install
npx skills add https://github.com/dEitY719/dotfiles --skill gh-pr-deity719
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh:pr
Source: https://github.com/dEitY719/dotfiles/tree/main/claude/skills/gh-pr
Command: npx skills add https://github.com/dEitY719/dotfiles --skill gh-pr-deity719

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Bundles all commits from the active branch into a GitHub pull request, ensuring a complete, well-structured PR body and safe push behavior.

Core Features & Use Cases

  • Automates PR creation for feature branches.
  • Ensures every commit in <base>..HEAD is reflected in the PR body.
  • Detects the default base branch, pushes when needed, and self-assigns.

Quick Start

Run the gh:pr command on your feature branch to instantly open a PR that includes all commits.

Frequently Asked Questions about gh:pr

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

FAQPage Schema
How do I create a GitHub pull request from the current branch?

To create a GitHub pull request from the current branch, run the gh:pr command to bundle all commits since divergence into a comprehensive PR body with automatic base-branch detection and push behavior.

How do I generate a PR body that includes all commits from my feature branch?

To generate a PR body with all commits, the tool reads all commits in base..HEAD and constructs a full PR body per template, ensuring every commit in the active branch is reflected in the GitHub pull request.

Do I need the gh CLI to automate pull request creation?

Yes, you need the gh CLI to automate pull request creation, along with Git and a repository with a default branch to read commits, construct the PR body, push as needed, and apply labels from conventional commits.

Can I automatically link issues and self-assign when opening a GitHub pull request?

Yes, you can automatically link issues and self-assign when opening a GitHub pull request, as the automation process includes optional linking to issues and applies self-assignment alongside automatic base-branch detection.

Does the automation apply labels from conventional commits to the pull request?

Yes, the automation applies labels from conventional commits to the pull request, ensuring the newly created PR on your feature branch is categorized according to your commit message standards.

What is the best way to bundle commits into a single GitHub pull request?

The best way to bundle commits into a single GitHub pull request is using a command that reads all commits in base..HEAD, constructs a full PR body per template, detects the default base branch, and pushes when needed to open the PR instantly.