DEV Community

9sako6
9sako6

Posted on • Updated on

I built the Web app to search commits on GitHub

Hello Developers!

I built a simple search engine of commits on GitHub :https://9sako6.github.io/commit-stalker/

demo

Motivation

I like browsing commits of a library on the GitHub. A history of commit teaches me a process of developping a library, a manner of writing a commit message and so on.
It's possible to see a history of them on the official GitHub site, but only 30 commits are showed at onece. It makes difficult to search older commits.
I want to see a lot more commits at onece and search older commits effectively.

Usage

It's available at :https://9sako6.github.io/commit-stalker/

It's easy to use. Please enter a user/organization and repository name. Page number is optional. Then, 100 commits of that repo are showed. If you push the ">>" button, you can show the page that includes the oldest commit.

Features

We can show 100 commits log at onece. In addition, it's easy to search the oldest commit of a repository.

Problem

There is one problem now.
It is inpossible to get a total commit count for a GitHub repo via their API.
total commits 1
Therefore, I calculate a total commit count from contributions of contributors. However, we can get at most 100 contributors' information via GitHub API, so I can't calculate the exact total commit count of a repo that has over 100 contributors.

demo

GitHub API example:

curl -i https://api.github.com/repos/sass/sass/contributors?anon=true
Enter fullscreen mode Exit fullscreen mode

Link

If anybody is interested please check out this app. here:

Thank you!!!

Top comments (5)

Collapse
 
jameslivesey profile image
James Livesey

Nice! Great name for the repo there 😂

Collapse
 
9sako6 profile image
9sako6

Thanks a lot, James😆

Collapse
 
motss profile image
Rong Sen Ng • Edited

Could be better with improved formatting to match that of on GitHub. Well done 👍!

Collapse
 
9sako6 profile image
9sako6

Thank you so much!
I will refine this more better😄

Collapse
 
bong98 profile image
bong98

how to access your web application. it is a blank page