I want the number commit count on specific branch for a date range using restapi .
Hello @Nanshu Arora ,
and welcome to the Community!
You can use the Bitbucket API to fetch commits from a specific branch, more specifically, the following endpoint:
https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/{branch}
Replace {workspace}
, {repo_slug}
, and {branch}
with your repository's workspace, repo slug, and branch name, respectively.
That particular endpoint does not directly support filtering by date range in the request itself, so you'll need to handle this filtering manually in your application or script. You'll retrieve the commits from that API endpoint and then filter them locally based on the date.
I hope that helps! Let me know in case you have any questions.
Thank you, @Nanshu Arora !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.