Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incorrect path for delete hook API #418

Merged
merged 2 commits into from
Jan 30, 2017

Conversation

kainisoft
Copy link
Contributor

Just came across this error when trying to delete a hook of repos

@@ -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', `/repo/${this.__fullname}/hooks/${id}`, null, cb);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do you mean repos here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, you're right. Fixed.

@clayreimann clayreimann merged commit 2deb74c into github-tools:master Jan 30, 2017
@clayreimann
Copy link
Member

Thanks for the fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants