如何使Bitbucket PR表现得像Github

Ale*_*lls 5 bitbucket pull-request bitbucket-cloud

当在Bitbucket Cloud上创建请求请求时,这是有效负载的重要部分,该负载由Bitbucket webhooks进行回购以进行POST:

{
  "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"
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

因此,与Github不同,Bitbucket不会创建一些具有合并功能的临时分支-因此,我是否希望自己进行合并以创建一些可以提交以进行测试的合并提交?如您所见,我所拥有的只是源提交和目标提交,而不是要测试的新合并提交。