Clayton helps you keep your code quality under control automatically, by monitoring and reviewing your code when it changes in your repository.

Webhooks in your version control system, let Clayton listen to specific Git events and trigger reviews in real-time (ref. How the Clayton code reviews work).

How to enable automated code reviews

Clayton creates webhooks automatically to monitor for relevant events in your repository. To set up the automation, please do the following steps:

  1. Log in to Clayton

  2. Go to your project page

  3. Click on Project name on the top bar

  4. Click on Project settingsĀ 

  5. Switch on the Listen to incoming webhook events

And configure the desired integration behaviour.

Multiple status checks in GitHub

Pull request review behaviours

  • Only when detecting new problems or fixes, or

  • When new commits are pushed

If your pull request approvals are dismissed when there are new commits, make sure to configure to publish a new pull request review when new commits are pushed.

Track your integration branches

Please note that only pull requests created towards branches that are tracked in Clayton are reviewed automatically. Make sure to track all your integration branches to protect every new development and enforce best practices at earlier stages.

Quality Gate

Do you want to create a quality gate for your projects with Clayton?
Have a look at our dedicated Help Section to learn how to make sure that newly committed code doesn't introduce problems.

Did this answer your question?