Hi, I trying to get all commits without merge commits. I used merges=exclude query parameter but it doesn't work. i'm getting all commits.
curl -H 'Authorization: Bearer <tocken>' -H 'Content-type: application/json' -X GET https://bitbucket.abc.com/rest/api/latest/projects/<proj-name>/repos/<repo-name>/pull-requests/<pullrequest-id>/commits?merges=exclude
I'm using this api call but which returns all commits.
please suggest me a solution how to achieve this.
merges=exclude can only be used with /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits. You can then get the pull requests that a specific commit is part of by using /rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/commits/{commitId}/pull-requests
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.