Skip to content

Instantly share code, notes, and snippets.

@danheberden
Created September 18, 2012 16:08
Show Gist options
  • Save danheberden/3743977 to your computer and use it in GitHub Desktop.
Save danheberden/3743977 to your computer and use it in GitHub Desktop.
Gith: File:add of specific match to repo example
var gith = require( 'gith' ).create( 1337 );
gith({
repo: 'danheberden/gith',
file: /^test\/payloads/
}).on( 'file:add', function( payload ) {
/* files were added to /test/payloads in danheberden/gith */
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment