how to filter upon failure of merging a pr into a specific branch in GitHub

Marc Emanuel
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 28, 2024

We only want an alert when a pr is merged into main in GitHub

1 answer

0 votes
Egor
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 1, 2024

Hey Marc,
Thanks for reaching out to Atlassian Community! 

To filter and receive alerts only when a pull request is merged into the main branch in GitHub, you need to configure the GitHub integration in Opsgenie. Set up a condition in the integration settings to check if the target branch of the merged PR is main. This way, you’ll only get alerts for PRs merged into the main branch.

Condition for the Target Branch:

{
"condition": "equals",
"key": "pull_request.base.ref",
"value": "main"
}

Best Regards,
Egor

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events