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

238
Views
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 answers
Answer question

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 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!