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:
- Open your repository Settings, tab Integrations.
- On the Post-commit hook area, click the button Create new hook.

Was this page helpful?
Your feedback helps us improve the documentation.
255 characters left
Thanks for helping improve Codacy documentation.
For more detailed feedback, open an issue on GitHub.