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

Get a user's commits by date via API (BB-13814)

    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

      My company/team has quite a few repositories on bitbucket and I am trying to fetch the logged in user's commits for a particular day.

      According to the current bitbucket API, the only way to do this is by

      1. Fetching all teams for the authenticated user
      2. Fetching all repos for each of the teams, the user is a part of
      3. Then fetching all the commits for each repo

      Even after these three API calls,I end up with a lot of data (all commits from all branches of all the repositories the user is a part of). Then I have to filter all the commits by user and date to arrive at my final data set.

      It would be great if there was a way to get commits for a start-date and end-date value. For example

      https://api.bitbucket.org/2.0/repositories/myAccount/commits?start_date=2015-07-20&end_date=2015-07-21

      Attachments

        Activity

          People

            Unassigned Unassigned
            2e45415f69be srutiharikumar
            Votes:
            67 Vote for this issue
            Watchers:
            60 Start watching this issue

            Dates

              Created:
              Updated: