Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-23028

Pull Request Merge Check Functionality Doesn't Work for Commit Build Status Updated Through API

    XMLWordPrintable

Details

    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

    Description

      When the commit build status is updated through the API, the pull request merge check functionality, which checks the last commit for at least 1 successful build, no failed builds, and no in-progress builds, doesn't work as expected.

      For example, if the last three commit statuses were successful, failed, and failed, the check should ideally pass since the latest one is successful. However, the current implementation checks for any failed build in the list, causing the merge check to fail.

      This behavior differs from Bitbucket Pipeline builds, where only the latest build status is considered to pass or fail the merge check. This needs to be implemented for commit build status updated via the API as well.

      Workaround: Use "PR ID" for the API key parameter so that the build status will be overwritten. This way, if the latest build is successful, the merge check will pass.

      Attachments

        Activity

          People

            Unassigned Unassigned
            f2cc5e9850cf Suhas Sundararaju
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: