TIY-DC-ROR-2015-Jan / course-notes

Syllabus, notes, and more for the class
0 stars 3 forks source link

Github Stats #170

Closed jamesdabbs closed 9 years ago

jamesdabbs commented 9 years ago

Due on Feb 19 @ 09:00am

Description

Pull and aggregate commit statistics from Github

Objectives

Learning Objectives

After completing this assignment, you should…

After completing this assignment, you be able to effectively use

Running ruby github-stats.rb should:

Get the list of all members in that organization, and then aggregate the addition, deletion and change counts (as returned from the contributors endpoint) for all public repositories for each user (note: not just contributions to repos for the organization).

The script should produce a table something like

              Additions     Deletions     Changes
User 1            13534          2954        6249
User 2             6940           913        1603
...

(or may produce a CSV output).

Hard Mode

ablythe commented 9 years ago

https://github.com/ablythe/github_stats I'm close to being able to cut down on my runtime by avoiding unnecessary gets, but am having trouble conceptualizing where and how to check if the data already exists in my database.

kdmcclin commented 9 years ago

I'll have to get back to you on the runtime, but your output looks good. screen shot 2015-02-20 at 11 00 48 am