

Setup
Use the/install-gh-app command to install the Factory GitHub App and configure the code review workflow:
- Verify GitHub CLI prerequisites
- Install the Factory GitHub App on your repository
- Let you select the Droid Review workflow
- Create a PR with the workflow files
How it works
Once enabled, the Droid Review workflow:- Triggers on pull request events (opened, synchronized, reopened, ready for review)
- Skips draft PRs to avoid noise during development
- Fetches the PR diff and existing comments
- Analyzes code changes for issues
- Posts inline comments on problematic lines
- Submits an approval when no issues are found
What Droid reviews
The automated reviewer focuses on clear bugs and issues:- Dead/unreachable code
- Broken control flow (missing break, fallthrough bugs)
- Async/await mistakes
- Null/undefined dereferences
- Resource leaks
- SQL/XSS injection vulnerabilities
- Missing error handling
- Off-by-one errors
- Race conditions
Customizing the workflow
After the workflow is created, you can customize it by editing.github/workflows/droid-review.yml in your repository.
Change the trigger conditions
Modify when reviews run:Adjust the review focus
Edit the prompt in the workflow to change what Droid looks for. For example, to add framework-specific checks:Change the model
Use a different model for reviews:Skip certain PRs
Add conditions to skip reviews for specific cases:Limit comment count
Adjust the maximum number of comments in the prompt:See also
- GitHub App installation - Full setup guide for
/install-gh-app - GitHub Actions examples - More automation workflows
- Droid Exec - Running Droid in CI/CD environments
