-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Documentation (User)
-
None
-
7
-
4
Currently, the requirement for the Required builds merge check is not documented anywhere.
Suggestion
Update the existing documentation; Checks for merging pull requests with the following information:
- The build status should be updated using the POST /rest/api/latest/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/builds. This endpoint is available from Bitbucket 7.4 and supports Rich Build Status.
- The payload needs to include the parent field. The parent field is the key of the parent plan for a particular build.
- For example, in Bamboo the URL to a build might be https://my-bamboo-url.com/browse/PROJ-PLAN123-5 for the 5th run of the PLAN123 branch plan of the parent plan PLAN in the project PROJ. In this case, the parent key would be PROJ-PLAN (whereas the key would be PROJ-PLAN123).