Hi,
I am using the below url and parameters in postman to get 30days old commits made in master branch of a repository.But this apicall is returning all commints and not 30 days old commits.
URL :
q=date > "2024-06-02T00:00:00+00:00"
Authorization : Basic auth(username and Personal access token)
Once i get 30ndays old commits,i want to filter for only merge commits.
Hi Sonal,
Unfortunately - it is not possible to use filtering & sorting against the commits endpoint, you can see a list of supported endpoints below:
We have a feature request raised with our developers to include this in the API, however, that you may Watch for future updates and Vote for to increase its visibility from a customer demand perspective:
You can achieve those results by using git commands as a workaround:
git log --before="30 days ago"
git log --merges --before="30 days ago"
I hope this helps.
Cheers!
- Ben (Bitbucket Cloud Support)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.