Skip to content

How do I set Codacy as a required check to merge pull requests?

Codacy checks each pull request using your quality settings and sends a notification to the Git provider informing if the pull request is up to standards or not.

Each Git provider has different options to set up notifications or block merging pull requests until they pass the Codacy check:

GitHub

GitHub allows setting a status check as mandatory before merging pull requests.

Important

Make sure that you enable the option Pull Request Status on the GitHub integration.

GitLab

GitLab allows flagging merge requests as "Draft" to block merging them.

Bitbucket

Bitbucket allows setting a minimum number of merge checks that must pass before merging pull requests.

Important

Make sure that you enable the option Pull Request Status on the Bitbucket integration.

Last update: October 29, 2020