From 617843927422461f538f70fb1b21c676d3042ea9 Mon Sep 17 00:00:00 2001 From: Jack Collins Date: Fri, 20 May 2016 12:08:47 +0100 Subject: [PATCH 1/2] Create travishook.md --- examples/travishook.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 examples/travishook.md diff --git a/examples/travishook.md b/examples/travishook.md new file mode 100644 index 00000000..6c362280 --- /dev/null +++ b/examples/travishook.md @@ -0,0 +1,22 @@ +'''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 + try{ + fork.createHook(options, function(){ + console.log("A travis hook has been created which will trigger a build on push and pull request events..."); + }); + } + catch(err){ + console.log(err); + } +''' From b7ea1109651436ed7c6132b8a1005ebbc6137e6d Mon Sep 17 00:00:00 2001 From: Jack Collins Date: Tue, 24 May 2016 14:32:24 +0100 Subject: [PATCH 2/2] Update travishook.md --- examples/travishook.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/examples/travishook.md b/examples/travishook.md index 6c362280..455cfc71 100644 --- a/examples/travishook.md +++ b/examples/travishook.md @@ -11,12 +11,8 @@ "active" : true } //create the git-travis hook - try{ - fork.createHook(options, function(){ - console.log("A travis hook has been created which will trigger a build on push and pull request events..."); - }); - } - catch(err){ - console.log(err); - } + + fork.createHook(options, function(){ + console.log("A travis hook has been created which will trigger a build on push and pull request events..."); + }); '''