Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Prevent GitHub PR merge based on associated JIRA status

Deleted user Sep 11, 2019

We already have Jira integrated with github, so any mention of Jira ticket in commits links them together. Now we would like to change the mergeability of a PR based on the status of its associated ticket.
I did check out a similar question: https://community.atlassian.com/t5/Bitbucket-questions/Prevent-merge-based-on-JIRA-status/qaq-p/1169454,
but this was about BitBucket.

Is there any "Atlassian" way currently? If not, what are the ways to manually enforce this? Github actions? Webhooks? Please help.

Thanks.

3 answers

Any resolution on this? Would love to know if you were able to solve this and how.

Deleted user Apr 18, 2020

No @Eugene Lorman I didn't do anything about it. If you find any plugin for it, let me know.

We ended up creating a custom github action (3 of them) to help pull in jira labels and treat them as check for a PR. Can probably DM if someone else needs this and is maybe interested in packaging as a single action.

Like Jake Warren likes this

@Eugene Lorman would love to see what you created.  Not sure if/how you can DM here, but a reply here might benefit others anyway.

Like Jake Warren likes this

I agree with @James Sheridan@Eugene Lorman , would love to see what you did as we are running into the same issue where this could be the solve for us.  Any way you could share?

I am working on something that I can publish, stay tuned.

Like Jake Warren likes this

Created This GitHub Action . Please give it a run and let me know if anything is not as it seems.

Created This GitHub Action . Please give it a run and let me know if anything is not as it seems.

There is not but what use case do you have where a dev needs to check jira before merging a PR?

Deleted user Sep 12, 2019

Say the PR branch is deployed to staging and QA does testing on it. We want to ensure that the PR gets merged to master only when the QA marks the ticket as resolved.

Like Matthew McLarty likes this

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Do you use Jira Cloud with Microsoft Teams?

Hi, Jira users! Do you use Jira alongside Microsoft Teams? We want to hear how you’ve used the power of Jira Cloud and Microsoft Teams (via the Jira Cloud for Microsoft Teams app) to achieve a team...

453 views 2 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you