GitLab: How to query history commits of certain branch with GraphQL

GitLab: How to query history commits of certain branch with GraphQL


0

I’m trying to query the commit history of a project’s repository of certain branch with GraphQL, is this possible? And there is no related samples I can find in Gitlab docs, or did I have to use the REST API which is much more viable. I’ll be appreciated if anyone have any ideas about this problem. :handshake:

I can only query lastCommit, how to query list of commits

{
  project(fullPath:"group-name/project-name"){
    repository{
      tree{
        lastCommit{
          title
        }
      }
    }
  }
}


Load 6 more related questions


Show fewer related questions

0



Leave a Reply

Your email address will not be published. Required fields are marked *