Hello,
Can someone help to know which function can give source branch name when pull request is created.
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
It looks like you're new here. Sign in or register to get started.