Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

223
Vistas
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 Respuestas
Responde la pregunta

0

I found the way to do it

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

});

about 4 years ago · Santiago Trujillo Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda