Giter Club home page Giter Club logo

repo_stats's Introduction

This is based on Brent Vatne's react-native-issue.

This script finds the most active people on a given GitHub repo. It fetches all the issues and pull requests via the GitHub API and all comments for each of them, and counts how many times each person commented. It reports progress and every n steps prints a summary like:

Top 10 for most recent 100 issues:
{
  "facebook-github-bot": 134,
  "bestander": 28,
  "brentvatne": 26,
  "mkonicek": 26,
  "satya164": 24,
  "martinbigio": 17,
  "ide": 17,
  "aleclarson": 16,
  "skevy": 14,
  "davidaurelio": 12,
}

To use this script, simply run:

ruby stats.rb facebook/react-native

Note that you'll almost immediately get blocked because of exceeding the API rate limit. To check the limit (the numbers are per hour), run:

curl -i https://api.github.com/users/whatever

To get a higher limit you need to use authenticated requests. Luckily, you can simply generate an access token for command line use. Important: Do this with a user that doesn't have push access or anything in case you leak the token. If you have push access to the repo just register a new dummy GitHub user and get the token for that user.

Check that the token works:

curl -i https://api.github.com/users/whatever?access_token=your_token

You should see a limit of 5000 request per hour.

repo_stats's People

Contributors

mkonicek avatar

Stargazers

Nicolas Charpentier avatar Brent Vatne avatar Sibelius Seraphini avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.