Skip to content

Create smaller PRs by cherry-picking a bigger one.

License

Notifications You must be signed in to change notification settings

rafael-lua/lazyprs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lazyprs

A CLI tool to create pull requests from a selection of commits, making it easy to split up work into smaller, more focused PRs.

Installation

# Use directly with npx/pnpm dlx
pnpm dlx @rafael79/lazyprs big-branch-name

Usage

pnpm dlx @rafael79/lazyprs <base-branch> [options]

Examples

# Basic usage - create PR against big-branch-name branch
pnpm dlx @rafael79/lazyprs big-branch-name

# Custom branch name
pnpm dlx @rafael79/lazyprs big-branch-name --branch=feature-xyz

# Custom PR title
pnpm dlx @rafael79/lazyprs big-branch-name --title="Fix navigation issues"

# Create as PR in draft mode
pnpm dlx @rafael79/lazyprs big-branch-name --draft

# Keep local branch after PR creation
pnpm dlx @rafael79/lazyprs big-branch-name --keep

# Specify custom starting point for commit range
pnpm dlx @rafael79/lazyprs big-branch-name --from v1.2.3

# Ignore PR template
pnpm dlx @rafael79/lazyprs big-branch-name --ignore-templates
pnpm dlx @rafael79/lazyprs big-branch-name --ignore-templates --body "This PR fixes several issues with the navigation component."

The tool will:

  1. Create a new branch from the specified base
  2. Present an interactive prompt to select commits to include
  3. Cherry-pick selected commits to the new branch
  4. Push to remote and create a PR
  5. Clean up the local branch (unless --keep is specified)

About

Create smaller PRs by cherry-picking a bigger one.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published