Quantcast
Channel: Finding the oldest commit in a GitHub repository via the API - Stack Overflow
Browsing latest articles
Browse All 7 View Live

Answer by FedFranz for Finding the oldest commit in a GitHub repository via...

Posting my solution, since all others didn't work for me.The following script retrieves the list of commits for a given REPO ("owner/repo"), traverses to the last page if necessary, and outputs the...

View Article


Answer by Bertrand Martel for Finding the oldest commit in a GitHub...

Using the GraphQL API, there is a workaround for getting the oldest commit (initial commit) in a specific branch.First get the last commit and return the totalCount and the endCursor :{...

View Article


Answer by fregante for Finding the oldest commit in a GitHub repository via...

This isn't via API, but on GitHub.com: if you have the latest commit SHA and the commit count, you can build the URL to find...

View Article

Answer by JamesSchiiller for Finding the oldest commit in a GitHub repository...

Trial and error on the page number, https://github.com/fatfreecrm/fat_free_crm/commits/master?page=126The git history, maybe using gitk for instance, could help your trial and error be more efficient.

View Article

Answer by Mihai Parparita for Finding the oldest commit in a GitHub...

This can be done in as few as two requests, if data is already cached (on GitHub's side) and depending on your precision requirements.First check to see if there are in fact commits before the creation...

View Article


Answer by VonC for Finding the oldest commit in a GitHub repository via the API

One suggestion would be to list commits on a repo (See GitHub api V3 section), using the until parameter, set to the creation of the repo (plus one day, for instance).GET...

View Article

Finding the oldest commit in a GitHub repository via the API

What is the most efficient way to determine when the initial commit in a GitHub repository was made? Repositories have a created_at property, but for repositories that contain imported history the...

View Article
Browsing latest articles
Browse All 7 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>