While exporting repository settings via API (rest/api/1.0/projects/{project}/repos/{repository}/settings/pull-requests) we receiving next response:
"com.atlassian.bitbucket.server.bitbucket-build:requiredBuilds": {
"enable": false,
"count": 1
}
Which is fine, but, when trying to upload it to newest bitbucket version:
"context": "com.atlassian.bitbucket.server.bitbucket-build:requiredBuilds",
"message": "The required builds count must be greater than zero.", "exceptionName": null
Which is not right. As well, when changing approvers to 1:
"context": "com.atlassian.bitbucket.server.bitbucket-build:requiredBuilds",
"message": "A required builds count can not be provided when disabling the merge check", "exceptionName": null