Gerrit supports plugin-based validation of uploaded commits.

This allows plugins to perform additional validation checks against uploaded commits, and send back a warning or error message to the git client.

To make use of this feature, a plugin must implement the CommitValidationListener interface.

Out of the box, Gerrit includes a plugin that checks the length of the subject and body lines of commit messages on uploaded commits.


Part of Gerrit Code Review