https://github.com/przbadu/gc_score
CLI app for calculating github commit scores from https://api.github.com/users/<github_username>/events/public
https://github.com/przbadu/gc_score
cli ruby ruby-gem
Last synced: about 1 month ago
JSON representation
CLI app for calculating github commit scores from https://api.github.com/users/<github_username>/events/public
- Host: GitHub
- URL: https://github.com/przbadu/gc_score
- Owner: przbadu
- License: mit
- Created: 2017-02-21T12:31:37.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-21T12:57:56.000Z (about 8 years ago)
- Last Synced: 2025-02-14T22:47:46.784Z (3 months ago)
- Topics: cli, ruby, ruby-gem
- Language: Ruby
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# gc_score
The API endpoint to fetch the activities for a user on Github is as follows:
[https://api.github.com/users/username/events/public](https://api.github.com/users/username/events/public)
The JSON response for the above call contains an area of events of different types, and
each event has a score attached to it.The following mapping shows the scores available:
```ruby
{
"IssuesEvent" => 7,
"IssueCommentEvent" => 6,
"PushEvent" => 5,
"PullRequestReviewCommentEvent" => 4,
"WatchEvent" => 3,
"CreateEvent" => 2
}
```**Write a program in Ruby which would fetch the commit score for a user on Github.**