Code Review
Dojo has built-in code review powered by stacks. No need for external tools like GitHub PRs — review happens right in the CLI.
The review flow
Section titled “The review flow”1. Author submits a stack
Section titled “1. Author submits a stack”dojo stack submit --title "Refactor database layer"2. Reviewer views pending stacks
Section titled “2. Reviewer views pending stacks”dojo review list3. Reviewer examines the changes
Section titled “3. Reviewer examines the changes”# Full diffdojo review diff --number 42
# Only changes since last reviewdojo review diff --number 42 --delta4. Reviewer provides feedback
Section titled “4. Reviewer provides feedback”# Approvedojo review approve --number 42
# Request changes with reasondojo review reject --number 42 --message "Missing error handling in auth middleware"
# Leave inline commentsdojo review comment --number 42 --message "Consider using a Map here instead"5. Author addresses feedback
Section titled “5. Author addresses feedback”# Edit the relevant commitdojo edit <commit-id>
# Make fixes...dojo commit -m "Address review feedback"
# Push updatesdojo sync push6. Reviewer checks the delta
Section titled “6. Reviewer checks the delta”# See only what changed since last reviewdojo review diff --number 42 --deltaReview statuses
Section titled “Review statuses”| Status | Meaning |
|---|---|
draft | Not yet submitted for review |
review | Awaiting review |
approved | Approved by reviewer(s) |
merged | Merged into main |
Best practices
Section titled “Best practices”- Keep stacks focused — one logical change per stack
- Write clear titles — summarize what the stack does
- Use delta reviews — after updates, only review what changed
- Comment constructively — explain the “why” not just the “what”