git - Get private repos stats with Github API and ruby -


how can stats private repos in github ruby code? steps need do? know github api, have succeeded access public repo through curl command.

i found guide useful https://developer.github.com/guides/getting-started/ getting informations private repos explained step step, can reproduce curl commands , adapt ruby.

for instance, stats on contributors :

curl -h accept:application/json -u "yourlogin:yourpassword" https://api.github.com/repos/yourusernameororganization/theprivaterepo/stats/contributors 

note putting password in command line not recommended it's easier understand way.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -