根据Bitbucket API文档,我应该能够通过向此URL发送POST请求来合并拉取请求。
https://bitbucket.example.com/rest/api/1.0/projects/{projectkey}/repos/{repositoryslug}/pull-requests/{pullrequestid}/merge?version
然而,每当我尝试时,都会收到 409冲突
的响应,并且在响应中包含以下内容:
"message": "You are attempting to modify a pull request based on out-of-date information.",
"currentVersion": 0,
"expectedVersion": -1,
我尝试将版本号设置为0
、-1
或者干脆省略版本号,但结果始终相同。请问如何使它进行合并?