根据Bitbucket API documentation,我应该能够将带有POST的请求请求合并到该URL:
https://bitbucket.example.com/rest/api/1.0/projects/{projectkey}/repos/{repositoryslug}/pull-requests/{pullrequestid}/merge?version
但是,无论何时尝试,我都会收到响应409 Conflict
,并且在响应中包含以下内容:
"message": "You are attempting to modify a pull request based on out-of-date information.",
"currentVersion": 0,
"expectedVersion": -1,
我尝试将0
作为版本号,将-1
作为版本号,完全省略版本号-结果始终相同。如何合并?