Skip to content

Commit 2deb74c

Browse files
kainisoftclayreimann
authored andcommitted
Fix incorrect path for delete hook API (#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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy