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); } /**