Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

REST API Is there some way to get commits until a certain commit uuid or date ?

Hello, I'm getting the commits for a certain repo slug using the API 
https://api.bitbucket.org/2.0/repositories/{username}/{repo-slug}/commits

Is there some way to get commits until a certain commit uuid or date ?
Thanks.

3 answers

1 accepted

0 votes
Answer accepted

Hi @Hassan Adel ,

Please, refer to https://developer.atlassian.com/bitbucket/api/2/reference/meta/filtering for further information.

Kind regards,
Rafael

For what I can see, you cannot filter commits by "date". That is really a terrible lacking considering commits is the one thing you for sure want to filter as there are so many.

https://api.bitbucket.org/2.0/repositories/{ws}/{repo slug}/commits?pagelen=1&date>2020-11-12T12:12:12

Does not work, even though the object does have a "date" at it's root

If someone managed to filter commits by date, could you please help?

+1.

Actually your example is not 100% correct, cause according to documentation we must use something like 

https://api.bitbucket.org/2.0/repositories/{ws}/{repo slug}/commits?q=date>2020-11-12T12:12:12

and url encode it

But this didn't worked as well.

Also tried to 

1. q=values.date > YYYY-MM-DD HH:mm

2. q=values.date > "YYYY-MM-DD HH:mm"

3. q=date > "YYYY-MM-DD HH:mm"

And no result

Still trying to solve it.

0 votes

Hello,

It seems the filter requested is unavailable as per https://community.developer.atlassian.com/t/how-do-i-filter-list-of-commits-from-rest-api-v2/15805/11

Please, comment on the link above so developers can become aware of your request and potentially implement a new feature.

Kind regards,
Rafael

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

327 views 2 10
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you