From 2deb74c29e9ced29caa3aa99730ed16531a02a7d Mon Sep 17 00:00:00 2001 From: Kairat Bakitow Date: Mon, 30 Jan 2017 23:51:09 +0600 Subject: [PATCH] Fix incorrect path for delete hook API (#418) --- lib/Repository.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Repository.js b/lib/Repository.js index fb200397..d338b261 100644 --- a/lib/Repository.js +++ b/lib/Repository.js @@ -603,7 +603,7 @@ class Repository extends Requestable { * @return {Promise} - the promise for the http request */ deleteHook(id, cb) { - return this._request('DELETE', `${this.__fullname}/hooks/${id}`, null, cb); + return this._request('DELETE', `/repos/${this.__fullname}/hooks/${id}`, null, cb); } /**