[PR #12190] feat(opencode): add committed review type to review command #14112

Open
opened 2026-02-16 18:18:55 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/12190

State: open
Merged: No


What does this PR do?

Adds a new committed review type to the /review command. This allows users to review the most recent commit by running git diff HEAD^ HEAD.

Previously, the review command supported:

  • branch - review current branch changes
  • staged - review staged changes
  • unstaged - review unstaged changes
  • pr - review a PR from GitHub

This PR adds:

  • committed - review the last committed changes

This is useful when you've just committed changes and want to quickly review what was included in that commit.

How did you verify your code works?

Tested the review command with "committed" input to confirm it correctly identifies the review type and would run git diff HEAD^ HEAD.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/12190 **State:** open **Merged:** No --- ### What does this PR do? Adds a new `committed` review type to the `/review` command. This allows users to review the most recent commit by running `git diff HEAD^ HEAD`. Previously, the review command supported: - `branch` - review current branch changes - `staged` - review staged changes - `unstaged` - review unstaged changes - `pr` - review a PR from GitHub This PR adds: - `committed` - review the last committed changes This is useful when you've just committed changes and want to quickly review what was included in that commit. ### How did you verify your code works? Tested the review command with "committed" input to confirm it correctly identifies the review type and would run `git diff HEAD^ HEAD`.
yindo added the pull-request label 2026-02-16 18:18:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#14112