Skip to content

Commit 2deb74c

Browse files
kainisoftclayreimann
authored andcommitted
Fix incorrect path for delete hook API (github-tools#418)
1 parent bc37708 commit 2deb74c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Repository.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ class Repository extends Requestable {
603603
* @return {Promise} - the promise for the http request
604604
*/
605605
deleteHook(id, cb) {
606-
return this._request('DELETE', `${this.__fullname}/hooks/${id}`, null, cb);
606+
return this._request('DELETE', `/repos/${this.__fullname}/hooks/${id}`, null, cb);
607607
}
608608

609609
/**

0 commit comments

Comments
 (0)