Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

226
Views
Get project commits using node-gitlab api

Using node-gitlab API in NodeJS application, how can i get a project's list of commits. I could get the list of projects using:

router.get('/projects', function(req, res, next) {
    gitlab.projects.all(function(projects) {
    res.json(projects);
    console.log(projects);
  });
});

Thanks

about 4 years ago · Santiago Trujillo
2 answers
Answer question

0

I found the way to do it

gitlab.projects.repository.listCommits(projectId,function(commits) {

});

about 4 years ago · Santiago Trujillo Report

0

it's not documented in the api, but i found it in the repository.js file of the package:

gitlab.repository.getCommits(id, ref_name)

id: projectId,

ref_name: name of a repository branch or tag or if not given the default branch

about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!