pull-request

Analyze branch diffs and automate GitHub pull request creation and updates.

1|1|Updated Feb 28, 2024
One-click install
npx skills add https://github.com/jiyeol-lee/dotfiles --skill pull-request-jiyeol-lee
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pull-request
Source: https://github.com/jiyeol-lee/dotfiles/tree/main/.opencode/skills/pull-request
Command: npx skills add https://github.com/jiyeol-lee/dotfiles --skill pull-request-jiyeol-lee

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill analyzes branch diffs, drafts PR titles and bodies following Conventional Commits, and automates PR creation or updates via GitHub CLI to streamline collaboration workflows.

Core Features & Use Cases

  • Preflight checks verify repository context, branch state, and unpushed commits before any action.
  • Analyze commits for conventional-commit style messages and related issues to surface meaningful PR summaries.
  • Draft and update PR titles and bodies, reuse templates when available, and fetch reviewer suggestions from repository settings.
  • Publish PRs with explicit user approval, using GitHub CLI to create or edit PRs and push commits when necessary.
  • Use cases include: creating a PR from a feature branch, updating a PR description after code review, or submitting changes for review in a multi-contributor project.

Quick Start

Provide the repository, target branch, and a brief summary of changes, and I will draft a compliant PR title and body ready for review.

Frequently Asked Questions about pull-request

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

FAQPage Schema
How do I automate pull request creation from local git changes?

To automate pull request creation, this Skill analyzes local branch diffs and conventional commits, then drafts and publishes PR titles and bodies directly via the GitHub CLI. It performs preflight checks to verify repository context and unpushed commits before creating the PR.

Can I update a GitHub pull request description automatically after a code review?

Yes, you can update a GitHub pull request description automatically after a code review. The Skill drafts revised PR bodies based on repository templates and conventional commit history, then applies the updates through the GitHub CLI with explicit user approval.

What is the best way to generate pull request titles following conventional commits?

Generating pull request titles following conventional commits involves analyzing branch diffs and parsing commit messages for conventional-commit style. This Skill surfaces related issues and meaningful summaries to draft a compliant PR title ready for review.

Does this PR drafting tool require GitHub CLI and git workflows to function?

Yes, this PR drafting tool requires GitHub CLI and git workflows to function. It integrates seamlessly with gh and git to perform preflight checks, verify branch state, push commits when necessary, and execute the final PR creation or updates.

How do preflight checks work before submitting a pull request across multiple repos?

Preflight checks before submitting a pull request verify the repository context, branch state, and unpushed commits. This ensures alignment with conventional commits across multiple repos and validates the environment before taking any action to publish or update the PR.