Overview
Thewit pr command provides a complete pull request workflow from the CLI, including creating PRs, viewing details, managing reviews, and merging.
Commands
create
Create a new pull request from the current branch.Options
Examples
list
List pull requests in the repository.Options
Examples
Example Output
view
View details of a specific pull request.Examples
Example Output
checkout
Fetch and checkout a pull request locally for testing or review.pr-<number> pointing to the PR’s head commit.
Examples
merge
Merge a pull request.Options
Examples
close
Close a pull request without merging.reopen
Reopen a previously closed pull request.review
Review a pull request using AI-powered code review (CodeRabbit).Options
Examples
review-status
Check CodeRabbit configuration and installation status.Example Output
Workflow Example
A typical PR workflow from the command line:Integration with wit serve
The PR commands require a running wit server for full functionality. Start the server with:CodeRabbit Integration
wit integrates with CodeRabbit for AI-powered code reviews. To set up:- Get an API key from https://coderabbit.ai
- Configure it:
wit pr review --configure - Or set the environment variable:
export CODERABBIT_API_KEY=your-key