By using our Slack integration, Quality will automatically post notifications directly to your Slack room. Notifications will be posted whenever important events occur during our analysis (e.g., your code or test coverage gets better or worse).
Alerts are sent when:
- any letter rating changes,
- any new files are created with a rating of “C” or lower,
- test coverage improves or declines.
Note: For an organization-owned repository, you must be in an organization's Owners group to perform the actions described in this article. Alternatively, if you added the repository in question by clicking Add Open Source Repo, you must have GitHub-rights to administer the repository.
The steps below explain how to setup and test Quality's Slack integration. Note that these steps will require you to move back and forth between Code Climate and Slack.
- In Slack, click the "Team Settings" arrow in the upper-left hand corner of the screen and select Configure Integrations.
- Find Code Climate and click Add.
- Select the room you would like Code Climate to post to, and click Add Code Climate Integration.
- Copy the Webhook URL from Step 2 in the Slack instructions.
- In a new browser window, navigate to your Code Climate Dashboard.
- Mouse over your repository's name and click Settings.
- Select the Integrations tab.
- Next to Slack, click Set Up.
Paste the webhook URL into the Webhook URL field.
Optional: Enter a Slack channel to send notifications to. Ensure you use a # character before the channel's name (e.g., #dev).
Ensure Active is checked and click Save.
- To verify the Slack data is valid, click Test Service (this will post a sample message to your Slack room). If a green message appears at the top of the screen, all is well. If a red error message is displayed, see Troubleshooting below.
If you are seeing a red error message after clicking Test Service:
- Ensure there are no leading or trailing spaces around the Webhook URL that you provided to Code Climate.
- If you provide an optional channel name, ensure that you add a # character at the very front (e.g., #dev).
Updated 9 months ago