The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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

TAGS
AUG Leaders

Atlassian Community Events