Wants to all commits data details in Graphql

I want to particular projects all commits details using by graphql

I have tried steps:

  • Gitlab provides graphql exploration editor for check all data fetching graphql queries (GraphiQL)
  • I have got project,repository, branches, piplines, lastCommits etc. but for all commits i didn’t see.
  • I have also tried to web api and its working

curl --header “PRIVATE-TOKEN: ACCESS_TOKEN” https://gitlab.com/api/v4/projects/:id/repository/commits

If you have idea to get commits details then please share with us, it really helps!

2 Likes

Hi Khilendra,

I’m actually trying to figure out the same thing. Did you have any luck finding a solution that you could share? The documentation from GitLab does not come with any examples unfortunately and it doesn’t seem as if ‘commits’ are usable from within ‘repository’.

Regards,

1 Like

Hi Khilendra and mstellingwerff,
I’m looking for the same. Did any of you ever find a way to get commits using GraphQL, or did you have to resort to using the REST API?
BR, Espen

Doesnt seem to be a solution to this…

Please add commitlogs to GraphQL gitlab api