diff --git a/examples/travishook.md b/examples/travishook.md new file mode 100644 index 00000000..455cfc71 --- /dev/null +++ b/examples/travishook.md @@ -0,0 +1,18 @@ +'''javascript + var options = { + "name" : "travis", + "config" : { + "user" : "your-Username", + "token" : "00000000000000000000000000", + "domain" : "http://notify.travis-ci.org", + "content_type": "json" + }, + "events" : ["push", "pull_request"], + "active" : true + } + //create the git-travis hook + + fork.createHook(options, function(){ + console.log("A travis hook has been created which will trigger a build on push and pull request events..."); + }); +'''