Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Automation: Assign label to a Github Pull Request.

Nikodem Macuk
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!
October 6, 2023

Hello,
Is there an option to automatically assign a label to the pull request when it is created?

Example:

I have a ticket(Jiras' issue) with "Priority: Medium".
Screenshot 2023-10-06 at 11.25.49.png
I start working on the ticket, create a Pull Request (no issue on github, just a Jira ticket + Pull request) that is linked to the issue.
Is there an automation rule that will assign a label with "priority: medium" to the pull request?

Screenshot 2023-10-06 at 11.27.03.png

I did not find any template to do that.

1 answer

1 accepted

0 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2023

Hi @Nikodem Macuk -- Welcome to the Atlassian Community!

I do not believe there is anything built-in to modify the PR that way from an automation rule.

Instead have you tried calling the Github REST API from the rule, using a send web request action, to add the label?

Kind regards,
Bill

Nikodem Macuk
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!
October 6, 2023

Hey!
No I did not, I first wanted to make sure that I'm not gonna do something that is maybe already built in. :D

Thanks for the suggestion. Will definitely take a look!

Like Bill Sheboy likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 6, 2023
Like Nikodem Macuk likes this
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2023

Hi @Nikodem Macuk 

Just following up to check if this answered your question.  If so, please consider marking this one as "answered".  That will help others with a similar need find solutions faster.  If not, please let the community know what help you need with the rule changes.

Thanks!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events