Missed Team ’24? Catch up on announcements here.

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

Need help with function to get source branch of pull request

Shobhit Gupta January 23, 2021

Hello,

Can someone help to know which function can give source branch name when pull request is created.

1 answer

0 votes
jmarquesadaptavist May 5, 2021

Hi @Shobhit Gupta

In order to get the source branch name when the pull request is created you can create a Custom Listener for PullRequestOpenedEvent event and then you can use pullRequest.fromRef.displayId in your script.

Many Thanks and Kind Regards,

Jose Marques

Software Engineer - ScriptRunner for Bitbucket

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events