Skip to content

Commit f123b41

Browse files
committed
fix(deleteHook): Use the full name of the repository
fixes github-tools#363
1 parent 83775a1 commit f123b41

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
@@ -547,7 +547,7 @@ class Repository extends Requestable {
547547
* @return {Promise} - the promise for the http request
548548
*/
549549
deleteHook(id, cb) {
550-
return this._request('DELETE', `${this.__repoPath}/hooks/${id}`, null, cb);
550+
return this._request('DELETE', `${this.__fullname}/hooks/${id}`, null, cb);
551551
}
552552

553553
/**

0 commit comments

Comments
 (0)