Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .opencode/command/pr.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@ git log @{upstream}..HEAD --oneline 2>/dev/null

### Step 4: Collect commits

**Important:** `git log main..HEAD` is unreliable when previous PRs were squash-merged — it will include commits whose changes are already on main. Instead, use `git cherry` to find only commits not yet merged:

```bash
git cherry -v origin/main HEAD
```

This outputs lines prefixed with `+` (unmerged) or `-` (already merged). Only use `+` lines. The format is `+ <sha> <subject>`.

For each unmerged commit, get the full details:

Comment on lines +54 to +55
```bash
git log main..HEAD --format='%s%n%b%n---'
git log <sha> -1 --format='%s%n%b%n---'
```

Parse each commit:
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,16 @@ Run these checks (don't ask the user, just detect):

```bash
command -v bun >/dev/null 2>&1 && echo "bun=$(bun --version)" || echo "bun=missing"
command -v brew >/dev/null 2>&1 && echo "brew=found" || echo "brew=missing"
command -v opencode >/dev/null 2>&1 && echo "opencode=found" || echo "opencode=missing"
command -v tmux >/dev/null 2>&1 && echo "tmux=found" || echo "tmux=missing"
command -v pulse >/dev/null 2>&1 && echo "pulse=already-installed" || echo "pulse=not-installed"
```

- bun missing → Tell the user to install Bun first (https://bun.sh) and stop.
- bun missing + brew found → Ask: "Bun is required but not installed. Install it
with `brew install oven-sh/bun/bun`?" If yes, run it and continue. If no, stop.
- bun missing + brew missing → Tell the user to install Bun first
(https://bun.sh) and stop.
- opencode missing → Warn that OpenCode is needed, but proceed with installation.

### Step 2: Add the plugin to OpenCode config
Expand Down
Loading