According to the GraphQL specification, the MergeRequest
object contains commitsWithoutMergeCommits
field, but it seems there’s no way to get all commits (including merge) of a merge request. Whereas commitCount
field reports the number of all commits (including merge). Any chance this field will be added to the specification in the near future?
Do you have any solution now?
Found any solution?
In my case ,gitlab-ce version 15.8.1 , there is a commits
field in MergeRequest
, But it has the same content as commitsWithoutMergeCommits
and commitCount
value is not count the merge commit.
I think it’s a bug.