• Products
  • Get started
  • Documentation
  • Resources

Integrate Opsgenie with GitHub

GitHub logo

What does Opsgenie offer GitHub users?

Use Opsgenie’s GitHub integration to forward certain events (like pull requests, issues and push events) to Opsgenie with detailed information. Opsgenie acts as a dispatcher for GitHub alerts, determines the right people to notify based on on-call schedules– notifies via email, text messages (SMS), phone calls and iOS & Android push notifications, and escalates alerts until the alert is acknowledged or closed.

Functionality of the integration

  • When a pull request is created in your repository in GitHub, it creates an alert in Opsgenie.

  • When an issue is created in your repository in GitHub, it creates an alert in Opsgenie.

  • When a push is made to your repository in GitHub, it creates an alert in Opsgenie.

  • When a pull request is closed in your repository in GitHub, it closes the alert in Opsgenie.

  • When an issue is closed in your repository in GitHub, it closes the alert in Opsgenie.

Add GitHub integration in Opsgenie

  1. Go to Settings → Integrations. Search for GitHub and select Add

Under the Free and Essentials plans, the tabs under the Team dashboard are limited to Main, Integrations, Members, and Activity Stream.

2. Specify who is notified for GitHub alerts using the Responders field. Auto-complete suggestions are provided as you type.

Did you know that you can also add this integration from your team dashboard? 

If you want your team to be the owner of this integration, add it from your team dashboard. Opsgenie will assign the alerts received through this integration to your team only.

To do that;

  1. Go to Teams,

  2. Find your team and select it to go to your team dashboard,

  3. From your team navigation, select Integrations,

  4. Select Add integration.

3. Copy the Webhook URL.

4. Click Save Integration.

GitHub integration

Configuration in GitHub

  1. In your GitHub repository, click the Settings tab at the top.

  2. Select Webhooks from the left pane.

  3. Click Add webhook.

  4. Paste your Webhook URL into the Payload URL field.

  5. Select application/json as the Content type.

  6. Select Let me select individual events. option for the Which events would you like to trigger this webhook? part.

  7. Select PushIssues and Pull request from the list. Make sure the Active option is checked.

  8. Click Add webhook.

GitHub webhook

You can find more information on GitHub's Webhooks feature here.

When the Webhook configuration is saved in GitHub, you get a test alert created in Opsgenie.

Last modified on Aug 3, 2021
Cached at 12:27 AM on Oct 18, 2021 |

Additional Help