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

233
Vistas
Get the amount of commits published on a GitHub repository with Discord.js?

I have a simple GitHub command, that only displays some links to some pages on my repository. But I want to upgrade it. Is it possible to get the total amount of commits of a GH repo? And is there other data you can pull (contributors, files changed, latest version etc.)?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can make a GET request to the GitHub rest api at the endpoint: api.github.com/repos/{owner}/{repo}/commits

Where the owner is the username of the owner of the repository, and the repo is the name of the repository. Using any library of choice to make HTTP requests will allow you to fetch a list of the repos, which of course you can take the length of to find the number of commits.

See GitHub docs here and,

See guide to using a rest api on discordjs

Edit: To get the rest of the information you listed, I'd recommend consulting the full list of rest api endpoints for GitHub apps.

about 4 years ago · Juan Pablo Isaza 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