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

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

Github Stats #171

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

ghost commented 9 years ago

https://github.com/DCLivingston/github_stats

kdmcclin commented 9 years ago

:+1: Looks good. Do you ever use the organization name the user enters? Hard coding it is fine, I was just curious because it will do this organization no matter what you put in. Out of additional curiosity I ran it by hard coding another org I belong to and it worked, though it gave some interesting results that I don't believe. I'm not sure why they showed up like that though. screen shot 2015-02-20 at 10 30 11 am

ghost commented 9 years ago

Unfortunately, I didn’t but only because of the time factor. I had written the urls while developing and forgot to go back and correct them.

David Livingston

On Feb 20, 2015, at 10:32 AM, Katherine McClintic notifications@github.com wrote:

Looks good. Do you ever use the organization name the user enters? Hard coding it is fine, I was just curious because it will do this organization no matter what you put in. Out of additional curiosity I ran it by hard coding another org I belong to and it worked, though it gave some interesting results that I don't believe. I'm not sure why they showed up like that though. https://cloud.githubusercontent.com/assets/7718549/6289102/b235d440-b8eb-11e4-981f-ec855de09adb.png — Reply to this email directly or view it on GitHub https://github.com/TIY-DC-ROR-2015-Jan/course-notes/issues/171#issuecomment-75256821.

kdmcclin commented 9 years ago

Ah, no worries. I just wanted to check that you didn't intend to do something else.

ghost commented 9 years ago

The second screenshot didn’t have any formatting. Hmm.

David Livingston

On Feb 20, 2015, at 10:38 AM, Katherine McClintic notifications@github.com wrote:

Ah, no worries. I just wanted to check that you didn't intend to do something else.

— Reply to this email directly or view it on GitHub https://github.com/TIY-DC-ROR-2015-Jan/course-notes/issues/171#issuecomment-75257900.

kdmcclin commented 9 years ago

It's an issue with the markdown format I think, when you reply like that. I didn't even know you could attach images to issues until today, but markdown can be finicky with things. The link still works.