rebase-pr

Rebase pull requests onto main with signed commits and GitHub API checks.

3|1|Updated Jan 1, 2026
One-click install
npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill rebase-pr-jacobpevans
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rebase-pr
Source: https://github.com/JacobPEvans/claude-code-plugins/tree/main/git-workflows/skills/rebase-pr
Command: npx skills add https://github.com/JacobPEvans/claude-code-plugins --skill rebase-pr-jacobpevans

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of merging pull requests locally using a rebase workflow, ensuring linear git history and preserving commit signatures, which is crucial for repositories with signing requirements.

Core Features & Use Cases

  • Linear History: Avoids merge commits, keeping your main branch clean.
  • Signed Commits: Preserves commit signatures, essential for security and compliance.
  • Automated Validation: Checks PR readiness (CI status, reviews, resolved threads) before merging.
  • Use Case: When a pull request is approved and all CI checks pass, use this Skill to seamlessly rebase it onto the latest main branch and merge it, maintaining a clean, signed commit history.

Quick Start

Use the rebase-pr skill to merge the current pull request.

Frequently Asked Questions about rebase-pr

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

FAQPage Schema
How do I merge a pull request with a linear git history and signed commits?

To merge a pull request with linear git history and signed commits, you can automate a local rebase-merge workflow that rebases the feature branch onto main and performs a fast-forward merge. This avoids merge commits while preserving commit signatures.

Can I validate pull request readiness against the GitHub API before rebasing?

Yes, you can validate pull request readiness against the GitHub API by checking CI status, resolved review threads, and approvals before rebasing. This ensures the feature branch is fully cleared before merging into the main branch.

What's the best way to handle rebase conflicts when merging a feature branch?

Handling rebase conflicts when merging a feature branch involves resolving the conflicts locally during the rebase onto the latest main branch. The workflow pauses conflict resolution, then runs post-rebase CI checks before pushing to origin/main.

Does a rebase merge workflow preserve GPG signed commits?

Yes, a rebase merge workflow preserves GPG signed commits during the fast-forward merge process. This is crucial for repositories with strict security and compliance requirements that mandate commit signatures.

Why do I need to run post-rebase CI checks before pushing to origin/main?

You need to run post-rebase CI checks before pushing to origin/main because rebasing onto the latest main branch can introduce new conflicts or break tests. Validating CI status post-rebase ensures the main branch remains stable.

Does this automated rebase workflow clean up local and remote branches after merging?

Yes, the automated rebase workflow cleans up both local and remote branches after a successful fast-forward merge to origin/main. It removes the merged feature branch locally and deletes the corresponding remote branch to keep the repository clean.