Skip to content

Instantly share code, notes, and snippets.

@danheberden
Created September 18, 2012 16:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danheberden/3743971 to your computer and use it in GitHub Desktop.
Save danheberden/3743971 to your computer and use it in GitHub Desktop.
Gith: File:add to repo example
var gith = require( 'gith' ).create( 9001 );
gith({
repo: 'danheberden/gith'
}).on( 'file:add', function( payload ) {
console.log( 'these files were added', payload.files.added );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment