5

当在 Bitbucket Cloud 上创建拉取请求时,这是由 Bitbucket webhooks 为 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"
    }
  }
}

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

4

0 回答 0