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

Repository hooks are not accessible by Integration #800

Closed
karpovicham opened this Issue Nov 30, 2017 · 2 comments

Comments

Projects
None yet
2 participants
@karpovicham

karpovicham commented Nov 30, 2017

I could not get the list of repository hooks with Integration authorization using this functions https://github.com/google/go-github/blob/master/github/repos_hooks.go#L109

I receive the error:

GET https://api.github.com/repos/MyOrgName/MyRepoName/hooks: 403 Resource not accessible by integration [] ( 1 repositories) in MyRepoName

It works well if we authorize by OAuth2 token, but not by Integration.

Could you please suggest any other way how could I get the list of the repository hooks with the Integration?
If I there are no any yet do you have plans to implement this in the near future?

Thanks

@dmitshur

This comment has been minimized.

Show comment
Hide comment
@dmitshur

dmitshur Dec 1, 2017

Member

This sounds like a GitHub API question, not a go-github-specific issue.

I'm not sure what the answer is. I don't see anything on this topic at https://developer.github.com/v3/repos/hooks/#list-hooks.

I'd suggest searching through the rest of GitHub documentation, and if you don't find anything, try contacting GitHub support. At the top of https://developer.github.com/v3/, it says:

If you have any problems or requests please contact support.

If you find that there is something that can be applied to go-github code to improve it, we welcome such enhancements, so please let us know.

Member

dmitshur commented Dec 1, 2017

This sounds like a GitHub API question, not a go-github-specific issue.

I'm not sure what the answer is. I don't see anything on this topic at https://developer.github.com/v3/repos/hooks/#list-hooks.

I'd suggest searching through the rest of GitHub documentation, and if you don't find anything, try contacting GitHub support. At the top of https://developer.github.com/v3/, it says:

If you have any problems or requests please contact support.

If you find that there is something that can be applied to go-github code to improve it, we welcome such enhancements, so please let us know.

@dmitshur dmitshur added the question label Dec 1, 2017

@karpovicham

This comment has been minimized.

Show comment
Hide comment
@karpovicham

karpovicham Dec 1, 2017

Thanks @shurcooL

You're right, this is a question for the GitHub API.

It's not possible to get hooks list this way as it's not even in their list of available endpoints for app:
https://developer.github.com/v3/apps/available-endpoints/

karpovicham commented Dec 1, 2017

Thanks @shurcooL

You're right, this is a question for the GitHub API.

It's not possible to get hooks list this way as it's not even in their list of available endpoints for app:
https://developer.github.com/v3/apps/available-endpoints/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment