When a pull-request is created on Bitbucket Cloud, this is the important part of the payload that gets POST'd by Bitbucket webhooks for the repo:
{
"destination": {
"commit": {
"hash": "b0xxxx9b05e6",
"type": "commit"
},
"repository": {
"type": "repository",
"name": "test-repo",
"full_name": "ntrs/test-repo",
"uuid": "{4exxxx51-e5df-49a7-9601-5d24cb50d3bd}"
},
"branch": {
"name": "master"
}
},
"source": {
"commit": {
"hash": "3dxxxxea3b8f",
"type": "commit",
"repository": {
"type": "repository",
"name": "test-repo",
"full_name": "ntrs/test-repo",
"uuid": "{4exxxx51-e5df-49a7-9601-5d24cb50d3bd}"
},
"branch": {
"name": "temp"
}
}
}
so unlike Github, Bitbucket doesn't create some temp branch that has the merge on it - so am I expected to do the merge myself in order to create some merge commit that I can forward to get tested? As you can see all I have is the source commit and destination commit, but not a new merge commit to test.