Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

228
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda