Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00afe31

Browse files
committed
fix(deleteHook): Use the full name of the repository
fixes github-tools#363 closes github-tools#364
1 parent 7a5d9d0 commit 00afe31

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
@@ -562,7 +562,7 @@ class Repository extends Requestable {
562562
* @return {Promise} - the promise for the http request
563563
*/
564564
deleteHook(id, cb) {
565-
return this._request('DELETE', `/repos/${this.__fullname}/hooks/${id}`, null, cb);
565+
return this._request('DELETE', `${this.__fullname}/hooks/${id}`, null, cb);
566566
}
567567

568568
/**

0 commit comments

Comments
 (0)