Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix the success message

  • Loading branch information...
commit 4dc7f867f86ec91b244b70c3382ac15cd952cc0d 1 parent 95cd781
@substack authored
Showing with 2 additions and 3 deletions.
  1. +1 −2  bin/cmd.js
  2. +1 −1  package.json
View
3  bin/cmd.js
@@ -95,8 +95,7 @@ function addHook (config, repo) {
};
request.post(opts, function (err, res, body) {
if (err) console.error(err);
- else if (res.statusCode !== 200) console.log(body)
- else if (body.id) {
+ else if (body && body.id) {
console.log('travis hook added for ' + repo
+ ' with id ' + body.id);
}
View
2  package.json
@@ -1,7 +1,7 @@
{
"name" : "travisify",
"description" : "add travis-ci hooks to github",
- "version" : "0.0.2",
+ "version" : "0.0.3",
"repository" : {
"type" : "git",
"url" : "git://github.com/substack/travisify.git"
Please sign in to comment.
Something went wrong with that request. Please try again.