Hacker News new | ask | show | jobs
Show HN: GitMark – Your GitHub Report Card (gitmark.me)
15 points by jicooo 3877 days ago
7 comments

Please remove the access to Private Repositories, or make it optional.
https://api.monosnap.com/rpc/file/download?id=kelMhl0A6kbbaN...

Haha, yes this is a pretty high bar of entry.

What, you don't trust me with ALL YOUR REPOS? Haha. I know, I mentioned this permissions thing in the blog post. Building it for myself, that scope is the only way I could read contributor stats for my company's private repos. Definitely don't need 90% of the other things, write access especially. Optional private repository access seems like a good solution.
That's what made me not do it. To be fair, I wrote a Github app once where I wanted read access to public and private repos, and I couldn't find anything in the Github API to give me specifically that. I had to request read+write for public+private, which is horribly permissive and gave me access to a bunch of stuff my app didn't need.
Yeah, I wish there were more fine-grained controls for permissions, i.e. just let me access meta-data like stats for repos (because that's all this app really needs).
Good suggestion, I like the idea of making it optional.
and why does it need write access?
Why does this need write access to my public repos?
It doesn't really need write access, but in order for it to fetch the contributor stats, I had to add the "repo" scope to the permissions. Unfortunately, I couldn't see any other way around that. See: https://developer.github.com/v3/oauth/#scopes
Here's a blog post I wrote about this project: https://medium.com/@jico/building-gitmark-d6a4e193e19 (it talks about the permissions overkill).

If you want to take a peek at the dashboard without having to grant GitHub access, here's a screenshot of mine: http://i.imgur.com/ufqifkp.jpg

This kind of functionality would be cool if github adopted it in-house. Having the read/write access to all public/private repos is a bar that's a bit too high.
Not working for me...says I am not part of any organization but I am a member of two.
Random, how do you draw those charts?
Whoops, I meant to mention that in the blog post. I used Chart.js http://www.chartjs.org/.
Ummm deploy keys?