Codacy Integration
Keep track of Codacy quality alerts from inside OpsLevel
Add a Codacy Integration
- In the OpsLevel app, Click Integrations in the left sidebar.
- Click on the + New Integration button.
- Click the Codacy tile to add the integration.
Create a Check
- Navigate to the Rubrics sub menu under the Service Maturity menu in OpsLevel.
- Hover over the cell that corresponds to the level and category you want your check to live in and click the + Add Check button.
![](https://assets.website-files.com/62f57683bbbfc131fb68b4d7/6375d169cbef952348e26a73_Untitled.png)
- Create a Codacy check.
- Select one of the Check Templates from the dropdown.
![](https://assets.website-files.com/62f57683bbbfc131fb68b4d7/63ff7f163491370970a7f1f1_Screen%20Shot%202023-03-01%20at%208.36.26%20AM.png)
The check will fail if there are any quality alerts sent to OpsLevel. Here is an example of the check result when a quality alert is found:
![](https://assets.website-files.com/62f57683bbbfc131fb68b4d7/63ff7f9bb4ed0622059ded0f_Screen%20Shot%202023-03-01%20at%208.38.39%20AM.png)
If you wish to allow for a certain number of quality alerts, select the template and update its Success Condition as well as its Result Message to your liking. Here is an example allowing for 3 Quality Alerts.
![](https://assets.website-files.com/62f57683bbbfc131fb68b4d7/63ff7feecb694eef3fdbfe75_Screen%20Shot%202023-03-01%20at%208.40.03%20AM.png)
Configuring Codacy to send data to OpsLevel
In Codacy, you will need to configure a webhook notification per repository using the Integration details from Step 1.
In order to map results to the appropriate service, a service alias must be appended to the integration webhook URL during webhook configuration. The template expects this as a new query parameter, alias
. Here's an example of what this might look like:
https://app.opslevel.com/integrations/custom_event/MY_INTEGRATION_UUID?alias=MY_SERVICE_ALIAS
Once the notification webhook is saved in Codacy. OpsLevel will receive updates when quality alerts are encountered.
Updated about 1 year ago