Get started with Opsgenie as a user
Learn how to configure your profile, get notifications from Opsgenie and view on-call schedules.
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.
You can add this integration from your team dashboard
If you're using Opsgenie's Free or Essentials plan, or if you’re using Opsgenie with Jira Service Management's Standard plan, you can only add this integration from your team dashboard as the Integrations page under Settings is not available in your plan.
Adding the integration from your team dashboard will make your team the owner of the integration. This means Opsgenie will assign the alerts received through this integration to your team only.
To do that,
Go to your team’s dashboard from Teams,
Select Integrations, and select Add integration.
Follow the rest of the steps to complete the integration.
Go to Settings > Integrations. Search for GitHub and select Add.
Specify who is notified for GitHub alerts using the Responders field. Auto-complete suggestions are provided as you type.
Copy the Webhook URL.
Click Save Integration.
In your GitHub repository, click the Settings tab at the top.
Select Webhooks from the left pane.
Click Add webhook.
Paste your Webhook URL into the Payload URL field.
Select application/json as the Content type.
Select Let me select individual events. option for the Which events would you like to trigger this webhook? part.
Select Push, Issues and Pull request from the list. Make sure the Active option is checked.
Click Add 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.
Was this helpful?