moul / node-gitlab

DEPRECATED, see https://github.com/node-gitlab/node-gitlab
https://npmjs.org/package/gitlab
Other
470 stars 140 forks source link

How can I get commits list from GITLab #106

Closed zahidirfan closed 9 years ago

zahidirfan commented 9 years ago

I am not sure how to get commits from gitlab via node-gitlab?

dave-irvine commented 9 years ago

By the look of it, this is in ProjectRepository: https://github.com/node-gitlab/node-gitlab/blob/develop/src/Models/ProjectRepository.coffee#L37

So you want something like

gitlab.projects.repository.listCommits('myProject', function (commits) {
    console.log(commits);
});