Skip to content
This repository has been archived by the owner on Jun 9, 2021. It is now read-only.

Variable for merged pull request commit hash #75

Closed
ultrafez opened this issue Oct 14, 2015 · 2 comments
Closed

Variable for merged pull request commit hash #75

ultrafez opened this issue Oct 14, 2015 · 2 comments

Comments

@ultrafez
Copy link

Open pull requests are well supported by the selection of variables available, but there doesn't appear to be a variable to retrieve the commit hash of the merge commit that is created when you merge a pull request.

I need this variable in order to make a request to Jenkins to build merged pull requests, because I'd like to specify the exact commit hash of the merged branch, rather than just use the branch name of the branch that the pull request was merged into (which could be modified before Jenkins gets chance to fetch new changes).

It looks like the commit hash is available from the PullRequestMergedEvent in Bitbucket Server (see API docs)

@tomasbjerre
Copy link
Owner

Released in 1.33 and 2.8
2.8 in Marketplace and 1.33 here:
https://github.com/tomasbjerre/pull-request-notifier-for-bitbucket/releases
Open issue again if not working! =)

@ultrafez
Copy link
Author

That was amazingly fast, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants