# Automate Your Review Process

- Speaker: [Eliran Bivas](/wiki/speakers/eliran-bivas.md)
- Event: [Reversim Summit 2017](/wiki/years/2017.md)
- Video: https://www.youtube.com/watch?v=Nh8BOemNs8s
- Transcript: [/transcripts/2017/51-Nh8BOemNs8s.md](/transcripts/2017/51-Nh8BOemNs8s.md)
- Language: Hebrew · Type: talk · Level: intermediate
- Topics: [DevOps](/wiki/topics/devops.md), [Developer Experience](/wiki/topics/developer-experience.md), [Open Source](/wiki/topics/open-source.md), [Software Engineering](/wiki/topics/software-engineering.md)

> Written by an LLM from machine transcripts. It can contain errors. Check the transcript before you quote it.

## Summary

The speaker discusses the challenges of managing code review processes in large repositories and the friction caused by unclear pull requests. To solve this, the speaker developed an automated bot called Revi that listens to pull request events and enforces rules defined in YAML files. The tool helps categorize, size, and label pull requests, enforce testing conventions, and even lock comment threads when developers argue instead of talking. Ultimately, the tool reduces frustration and automates repetitive communication tasks in software development teams.

## Key points

- [0:10](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=10s) Managing code repositories often starts with frustration over unclear pull request titles, missing context, and unknown testing status.
- [1:17](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=77s) Team agreements and manual code reviews both fail to scale and lead to endless arguments or burnout.
- [2:22](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=142s) The speaker created a bot named Revi to automate pull request management, categorization, and communication.
- [3:23](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=203s) Revi can add labels, assign reviewers, restrict pull request sizes, and trigger end-to-end CI pipelines in systems like Jenkins.
- [4:31](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=271s) The bot includes features like locking comment threads to force developers to talk in person and automatically merging approved changes.
- [5:42](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=342s) Revi operates using a set of rules defined in YAML format that react to webhook events.
- [6:49](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=409s) Revi is open-source under the Apache 2 license and can be deployed as binary, Docker container, or soon as a hosted service.
- [8:01](https://www.youtube.com/watch?v=Nh8BOemNs8s&t=481s) Existing tools in the industry include internal bots at Google and HashiCorp, while GitHub provides basic features like CODEOWNERS.

## Takeaways

- Automate repetitive communication and metadata enforcement in code reviews to save developer time.
- Use declarative configuration files like YAML to define custom workflows and rules for pull requests.
- Enforce size limits and testing conventions on pull requests to maintain high code quality standards.

## Questions this talk answers

- How can you automate the enforcement of code review standards and pull request sizes?
- What is the best way to handle missing tests and categorization in pull requests automatically?
- How can you reduce friction and endless arguments during code reviews?

## Technologies

Git, GitHub, Jenkins, Docker

## Tags

automation, ci/cd, code review, developer tools, github, open source
