git-curate
v1.0.1
Published
A CLI tool for curating Git branches and managing PRs
Readme
git-curate
A CLI tool for curating Git branches and managing PRs.

Installation
Using yarn (recommended)
yarn global add git-curateUsing npm
npm install -g git-curatePrerequisites
- Install the GitHub CLI (
gh) and authenticate:brew install gh gh auth login
Usage
git-curate <target> [options]Arguments
<target>- The branch to curate
Options
--base <branch>- Base branch to reset from (default: main)--dry-run- Show actions without executing-v, --verbose- Enable verbose logging output--include-drafts- Include draft pull requests in the selection--auto-push- Automatically push changes after merging PRs--help- Display help information--version- Display version information
Example
git-curate staging --base main --dry-runFeatures
- Resets the target branch to the base branch
- Lists open PRs using GitHub CLI
- Interactively prompts to select PRs to merge
- Handles merge conflicts gracefully
- Supports dry-run mode for testing
- Configurable logging levels
- Automated package building for multiple platforms
Development
- Clone the repository
- Install dependencies:
yarn install - Build the project:
yarn build - Run tests:
yarn test - Lint the code:
yarn lint - Format the code:
yarn format - Make commits using Commitizen:
yarn commit - Package the executable:
yarn package
Contributing
This project uses semantic-release for versioning and automated releases. Please follow the Conventional Commits specification for commit messages to ensure proper versioning.
See CONTRIBUTING.md for more details.
Code Quality
This project uses:
- ESLint - For code quality and style checks
- Prettier - For consistent code formatting
- TypeScript - For type safety
- Jest - For testing
License
ISC
