Visualizating team PR interactions
JavaScript CoffeeScript CSS HTML
Latest commit e27c376 Dec 24, 2015 Doug Avery Adding code.viget.com plug to README
Permalink
Failed to load latest commit information.
data
fetch First commit Aug 7, 2014
output Uncapitalizing some links Aug 7, 2014
process First commit Aug 7, 2014
util First commit Aug 7, 2014
.gitignore First commit Aug 7, 2014
README.md I don't know how to markdown Dec 23, 2015
package.json First commit Aug 7, 2014
view.coffee First commit Aug 7, 2014

README.md

Installation

Install coffeescript globally, then install all dependencies:

npm install coffee-script -g
npm install

Fetch the data

coffee fetch/index.coffee

This will trigger a very large set of requests, so if you just want to build a little sample data, run:

coffee fetch/index.coffee --sample

Process the data

coffee process/index.coffee

View the data

coffee view.coffee

Caveats

  • This project was designed as an experiment, not a product or polished tool, so gets pretty gross in some places. Hold your nose and keep going.
  • The GitHub API request limit is 5000, and Checkoning doesn't do anything special to get around this limit. If you hit 5000 requests while running the fetch script, it just won't work. If you find this happening, you may want to adjust the fetch scripts to remove pagination, or trim the number of repos/PRs you examine.
  • By default, checkoning only looks at private repos.
  • Checkoning was written and tuned for Viget's FED and dev teams, meaning that it might not look great with smaller or larger teams. Tweak the values in output/js/visualizations manually to get better results.

Configuration

When you run the fetch command, you'll be prompted to enter your GitHub username, your password, your organization name, and your team ID (an integer).

If you get tired of doing this repeatedly, you can make a .config.json file in the following format:

{
    "username": "my_username",
    "password": "password123",
    "organization": "companyname",
    "team": 12345
}

Then, run the script with the --config flag.

coffee fetch/index.coffee --config

One way to find your team ID is visit your team's GitHub page in the browser and enter $('.js-team-id').data('id') in the console.


Code At Viget

Visit code.viget.com to see more projects from Viget.