Live data from Hacker News

GitHub Report Card

githubreportcard.com

11–20 of 71 posts

Re: GitHub Report Card

#11
It would be awesome if I could see the whole image in the landing page without having to resize the page. Maybe you could allow the visitors to, you know, scroll a bit?

Also, I'm under some NDAs so I cannot allow access to the private repositories. It'd be great if it took only the public ones or public data.

Re: GitHub Report Card

#12
GitHub data is public (for public repositories) and archived, so you don't even need to use auth.

Example superquick BigQuery for tabulating all 2016 Push Events to GitHub by a given user for each day-of-week (1 = Sunday):

   SELECT DAYOFWEEK(created_at) as day_of_week, COUNT(*) as num_pushes
   FROM TABLE_DATE_RANGE([githubarchive:day.], TIMESTAMP('2016-01-01'), TIMESTAMP('2016-12-31'))
   WHERE type = "PushEvent" AND actor.login = "minimaxir"
   GROUP BY day_of_week
   ORDER BY day_of_week
Tabulating commits is possible too but requires JSON shenanigans. (Although the BigQuery data does not have commit dates which may not necessarily be the same as Push dates, so that may be a problem)

Re: GitHub Report Card

#14

There's no preamble describing why this report is a thing, nor what will be included. I'm waiting on mine to be generated, but the landing page leaves much to be desired.

It gave me:

- Total commits

- Unique repos

- Unique languages

- Total commits by day of week (my favorite graph as it shows a clear trend in my coding style)

- Average commits per day

- % of commits made on weekdays vs weekends

- Collaborators by changes (other GH users who collaborated on my repos)

- My additions (+ LOC)

- My deletions (- LOC)

- My open source changes

- Preferred language by repo count (owned)

- Stars on my stuff

- Forks of my stuff

- # of people subscribed to me

Some easy tweet templates at the top.

Re: GitHub Report Card

#15
post #2

It wants the ability to WRITE to my public AND private repos & create issues. no. just no.

Unfortunately, there is no such thing as read-only access to GitHub repos. Read/write access is the only scope that GitHub currently grants: https://developer.github.com/v3/oauth/#scopes . If you've given a third-party app access to your repos in the past (CircleCI, Auth0, TravisCI, Heroku, etc.), that access has been read/write.

This works:

https://github.com/login/oauth/authorize?response_type=code&...

Re: GitHub Report Card

#17
Not sure if anyone else is getting this, but I can't seem to scroll down past the fold for the site on Chrome on my Windows 7 machine.

Tried using Internet Explorer 11 and nothing showed up at all...

Re: GitHub Report Card

#18
post #9

I'm a Technical Product Manager at GitHub. I just took a look at this (pretty cool, maybe we should have deeper user metrics...). I saw a couple of comments about the 'write access' so I just figured I'd chime in and point out that it's a required scope to get all of the private contrib info out of the API. I definitely encourage people to be mindful of what access they grant, but for what it's worth I did it :)

> it's a required scope to get all of the private contrib info out of the API

Is there a technical reason why that's so, or is it just an artifact of the way GitHub's OAuth scheme is set up? I can't think offhand of a reason why it should be the former, but my experience with GitHub private repos is somewhat seldom, so it's quite probable it is necessary for a reason of which I'm unaware.

Re: GitHub Report Card

#19
post #5

Please include a checkbox to exclude private repos. I have a lot of private work that I just can't let anyone see. Thank you!

Important note: these reports are accessible only by you, the user. They are not publicly available.

But I still have to trust you with access to my private repos - read-write access, yet. I'm sure you're an entirely upstanding human being who would never abuse such access, but I don't know you from Adam's off ox, too.
Post reply on HN