Skip to content

claude-commands/command-merge-ready

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

command-merge-ready

A Claude Code slash command for finding and merging PRs that are approved and passing CI.

Installation

# Clone to your preferred location
git clone git@github.com:claude-commands/command-merge-ready.git <clone-path>/command-merge-ready

# Symlink (use full path to cloned repo)
ln -s <clone-path>/command-merge-ready/merge-ready.md ~/.claude/commands/merge-ready.md
```text

## Usage

```text
/merge-ready              # List all mergeable PRs
/merge-ready --merge      # Merge all ready PRs
/merge-ready --mine       # Only your mergeable PRs
/merge-ready --squash     # Use squash merge
/merge-ready 123          # Check specific PR
```text

## What it does

1. Finds PRs with approved reviews
2. Verifies CI status is passing
3. Checks for merge conflicts
4. Respects branch protection rules
5. Merges ready PRs (optional)
6. Deletes merged branches

## Output Format

```markdown
# PRs Ready to Merge

**Found**: 5 PRs ready

| PR | Title | Author | CI |
|----|-------|--------|-----|
| #234 | Add caching | @alice | ✅ |
| #456 | Fix bug | @bob | ✅ |

## Merge Commands
```bash
gh pr merge 234 --squash --delete-branch
```text

```text

## Merge Strategies

| Strategy | Description |
|----------|-------------|
| --squash | Clean history (default) |
| --merge | Preserve commits |
| --rebase | Linear history |

## Requirements

- GitHub CLI (`gh`) authenticated
- Claude Code with Opus 4.5 model access

## Updates

```bash
cd <clone-path>/command-merge-ready && git pull
```text

About

Claude Code command: Find and merge PRs that are approved and passing CI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •