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

Compare commits equivalent in bitbucket web 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

      Stash has an API like so:

      /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/compare/commits
      

      Can this functionality be added to the Bitbucket REST API? Specifically, I'm interested in listing the metadata about all commits between two hashes.

      The Bitbucket REST API supports paginating backwards from {{/commits/

      {hash}

      }} but if you consider the use case where we're starting at this hash and paginating back in time looking for the target hash, a problem arises when we don't know if the target hash exists: we may end up listing the entire repo before we can determine that it's not there.

      Attachments

        Activity

          People

            Unassigned Unassigned
            3672d83f7d57 jcogilvie
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: