Require API to list down the commits between two commits.
Is there any API or parameter through which we can get the list of commits between two commits?
There is this "universal" endpoint to list commits using various criteria:
I think we used this in the past, and AI tells me that you can parametrize it like this:
GET https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/commits/?include={end_commit}&exclude={start_commit}
...where:
include={end_commit} → the commit you want to reach to
exclude={start_commit} → the commit you want to start from
{workspace} → your Bitbucket workspace ID
{repo_slug} → your repository slug
@Aron Gombas _Midori_ Thank you for reply. This is resolved my question.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.