Recipe 1.2 Integrate Slack with a GitHub Enterprise Repository
Problem
You wish to post notifications from a specific GitHub Enterprise repository to a Slack channel.
Solution
To enable GitHub Enterprise repositories to post a notification to a Slack channel we will need to set up the GitHub app in unauthed mode.
- Complete steps 1 - 4 of Recipe 1.1 (Integrate Slack with a GitHub repository).
- From the Slack setup page, click switch to unauthed mode.
- In your GitHub account, go to the repository that you'd like to monitor. Click Settings in the right navigation.
- Click Webhooks & Services in the left navigation, then press Add webhook.
- From the Slack App Directory window, click copy URL.
- Returning to your GitHub account, paste the URL under Payload URL.
- For the Content type, make sure application/json is selected.
- Confirm SSL verification is turned on.
- Click Add webhook.
- Return to your Slack setup page and click Save Integration.
Discussion