Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-8165

Show Build Status for Pull Request merge

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Duplicate
    • None
    • None
    • None
    • We collect Bitbucket feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      It is very common to want to CI build/test the merged result of a PR.

      While Stash show's the build status of commits, and will show the build status for the HEAD commit of */pr/${pullRequestId}/from on the PR page, it would be great be able to show the build status for the HEAD commit of */pr/${pullRequestId}/merge on the PR page.

      https://developer.atlassian.com/stash/docs/latest/how-tos/updating-build-status-for-commits.html#Viewing_build_results
      https://developer.atlassian.com/static/rest/stash/3.11.3/stash-build-integration-rest.html

      A REST API to PUT a build status for a CommitId /rest/build-status/1.0/commits/{commitId} exists, and this will work for the HEAD commit of */pr/${pullRequestId}/from. It might be nice if that also worked and displayed for HEAD commit of */pr/${pullRequestId}/merge.

      Alternatively the Build Status of a PR could be considered as distinct from the Build Status of a Commit, and
      /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/pull-requests/{pullRequestId}
      extended with a '/build-status' API to set this status.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              b014594f3780 nickbroon
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: