The GitHub integration incorporates Codacy on your existing Git provider workflows by reporting issues and the analysis status directly on your pull requests.
When the integration is enabled, you can also create pull request comments and GitHub issues directly from Codacy when browsing the existing issues on the repository:
Enabling the GitHub integration#
To enable the GitHub integration, open your repository Settings, tab Integrations. When you add a new repository, the integration is already enabled by default.
If you remove the integration, you can enable it again as follows:
- Click the button Add integration and select GitHub on the list.
Click the button Enable and follow the instructions.
The user that enables the integration must have administrator access to the repository.
Configuring the GitHub integration#
To configure the GitHub integration, open your repository Settings, tab Integrations.
Depending on the options that you enable, Codacy will automatically update pull requests on GitHub with extra information when accepting pull requests:
Adds a report to your pull requests showing whether your pull requests and coverage are up to standards or not as configured on the quality settings of your repository.
To get a status for coverage you must also:
- Add coverage to your repository
- Enable the rule Coverage variation is under on the pull request quality gate.
To block merging pull requests that aren't up to standards see How do I block merging pull requests using Codacy as a quality gate?
Adds annotations on the lines of the pull request where Codacy finds new issues. Codacy maps the severity of the issues reported by the tools to the severity levels of the annotations. To enable this option, you must enable Status checks first.
Shows an overall view of the changes in the pull request, including new issues and metrics such as complexity and duplication. To enable this option, you must enable Status checks first.
This feature is only available on paid plans
Adds comments on the lines of the pull request where Codacy finds new issues with suggestions on how to fix the issues. Codacy doesn't apply any changes automatically. To apply the changes, manually review and accept the suggestions.
This feature is in early access and has the following limitations for now:
- The only supported Git providers are GitHub Cloud and GitHub Enterprise.
- The only two tools that suggest fixes are ESLint and markdownlint. However, we're planning to support suggestions from more tools.
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?
255 characters left
We're sorry to hear that. Please let us know what we can improve:
255 characters left
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 firstname.lastname@example.org.