Skip to content
This documentation is a preview of the pull request #2086

For the latest updates and improvements in production, open docs.codacy.com instead.

Post-commit hooks#

When you add a new repository to Codacy, Codacy automatically creates a repository hook on your Git provider to check for new commits and pull requests. This post-commit hook enables Codacy to trigger an analysis to run immediately after you push code to your repository.

Important

Don't change the configuration of the hooks created by Codacy on your Git provider, as it might cause service failure.

Creating a new post-commit hook#

In case your repository’s hook is missing from your Git provider, you can create a new one:

  1. Open your repository Settings, tab Integrations.
  2. On the Post-commit hook area, click the button Create new hook.

Create post-commit hook

Share your feedback 📢

Did this page help you?

Thanks for the feedback! Is there anything else you'd like to tell us about this page?

We're sorry to hear that. Please let us know what we can improve:

Alternatively, you can create a more detailed issue on our GitHub repository.

Thanks for helping improve the Codacy documentation.

Edit this page on GitHub if you notice something wrong or missing.

If you have a question or need help please contact support@codacy.com.

Last modified May 8, 2024