push-pr

Push a Git branch to a remote repository and create a GitHub Pull Request.

21|16|Updated Jan 12, 2024
One-click install
npx skills add https://github.com/sapiencexyz/sapience --skill push-pr-sapiencexyz
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: push-pr
Source: https://github.com/sapiencexyz/sapience/tree/main/.claude/skills/push-pr
Command: npx skills add https://github.com/sapiencexyz/sapience --skill push-pr-sapiencexyz

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires gh, git.

What problem does it solve?

This Skill automates the process of pushing code changes to a remote branch and creating a GitHub Pull Request, streamlining the code review workflow.

Core Features & Use Cases

  • Automated Branch Pushing: Pushes the current Git branch to the remote repository.
  • Conditional PR Creation: Creates a new GitHub Pull Request if one does not already exist for the branch.
  • Change Summarization: Gathers information about changes (diff and commit log) to help generate a descriptive PR title and body.
  • Use Case: After completing a feature, you can use this Skill to quickly push your code and initiate the PR process, ensuring your changes are ready for review without manual Git commands.

Quick Start

Use the push-pr skill to push the current branch and create a pull request.

Frequently Asked Questions about push-pr

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

FAQPage Schema
How do I automate pushing a Git branch and creating a GitHub Pull Request?

You can automate pushing a Git branch and creating a GitHub Pull Request by using a tool that commits uncommitted files, runs linting and tests, and then conditionally pushes and creates a PR with a generated title and body.

What is the best way to generate a descriptive PR title and body from git diff and commit logs?

Generating a descriptive PR title and body from git diff and commit logs is done by gathering change information during the push process to automatically summarize the branch updates for the pull request.

Do I need GitHub CLI installed to automate pull request creation from the command line?

Yes, you need the GitHub CLI (gh) and Git installed. These dependencies are required to interact with the remote repository, push the branch, and conditionally create the pull request.

Can I run linting, building, and tests before pushing my code to a remote repository?

Yes, you can run linting, building, and tests before pushing code. The automation process handles these checks locally before pushing the branch and creating the pull request to ensure code quality.

Does this pull request automation skip PR creation if one already exists for the branch?

Yes, the pull request automation checks for an existing PR on the branch. It conditionally creates a new GitHub Pull Request only if one does not already exist, preventing duplicate review requests.