gh-pr

Create a GitHub pull request from the current branch and output its URL.

3|Updated Apr 11, 2019
One-click install
npx skills add https://github.com/chagui/dotfiles --skill gh-pr-chagui
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gh-pr
Source: https://github.com/chagui/dotfiles/tree/main/dot_claude/skills/gh-pr
Command: npx skills add https://github.com/chagui/dotfiles --skill gh-pr-chagui

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Opens a GitHub pull request from the current branch to streamline code review and integration.

Core Features & Use Cases

  • Create a PR from the active branch to the default base (main) or a configured target branch.
  • Optional title support: supply a title, or auto-generate one from recent commits.
  • Outputs the PR URL for quick sharing and follow-up.

Quick Start

Run the gh-pr skill with an optional title to create a PR from your current branch.

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 my current branch?

To create a GitHub pull request from your current branch, run the automation tool with an optional title. It targets the main branch by default and outputs the PR URL after creation.

Can I auto-generate a PR title from recent git commits?

Yes, you can auto-generate a PR title from recent git commits. If you omit the title argument when creating the pull request, the tool automatically generates one from your commit history.

What is the default base branch when opening a pull request?

The default base branch when opening a pull request is main. You can configure a different target branch if your repository uses a custom integration workflow for code reviews.

Do I need to manually copy the pull request URL after creation?

No, you do not need to manually copy the pull request URL after creation. The tool automatically outputs the PR URL upon successful creation for quick sharing and follow-up.

Does this tool work for feature branches in collaborative software development?

Yes, this tool works for feature branches in collaborative software development. It streamlines code review and integration by automating PR creation from your active branch.