Skip to content

Instantly share code, notes, and snippets.

@pengwynn
Last active January 3, 2016 09:59
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pengwynn/8446161 to your computer and use it in GitHub Desktop.
Save pengwynn/8446161 to your computer and use it in GitHub Desktop.
Example for getting commit additions and deletions via Octokit.rb
require 'octokit'
stats = Octokit.commit('octokit/octokit.rb', '6e0d6ccd5b68173dd030e62f4276793e5d7ce40b').stats
stats.additions
=> 7
stats.deletions
=> 78
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment