Reviewing pushes
Turn it on, and Clara reviews commits pushed straight to the default branch and opens a pull request that fixes the bugs she finds.
Most commits on a small project never go through a pull request, so nothing reviews them. Clara can. She reviews what’s pushed to your default branch the same way she reviews a pull request, and fixes what she finds in a pull request of her own.
Turning it on
Reviewing pushes is off until you ask for it. Set pushes.review to true:
{ "pushes": { "review": true } }
Which pushes she reviews
She waits 30 minutes after a push, and reviews pushes less than 30 minutes apart together, so a run of commits gets one review.
| What was pushed | Clara |
|---|---|
| Commits a person pushed | Reviews them all |
| Only merged pull requests, or only a bot’s pushes | Skips it. She reviewed the pull requests before they merged |
| A push to another branch, or a tag | Nothing. A pull request’s pushes are reviewed on the pull request |
What she does with what she finds
| Finding | Clara |
|---|---|
| A bug | Checks it against the code, and fixes it in a pull request when it’s real |
| Something minor in what was pushed | Lists it on the commit, and leaves it alone |
| Something minor on lines the push didn’t touch | Drops it |
She reviews her own fix before she opens its pull request, and lists anything that review found and she couldn’t settle in the pull request’s description.
Then she comments on the pushed commit with what she found and a link to the fix, so its author hears about it. A review that finds nothing posts nothing.
Leaving paths out
List paths in pushes.ignore and Clara leaves them out, such as a site that ships from the same repository:
{ "pushes": { "review": true, "ignore": ["apps/web/"] } }
Pushes that only touch those paths aren’t reviewed at all. Set pushes.fix to false to get her findings on the commit without a pull request.