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

github.getRepository does not work for Enterprise github instance #263

Closed
ram-bakthavachalam opened this issue Mar 30, 2016 · 4 comments
Closed

Comments

@ram-bakthavachalam
Copy link

github.getRepository method appends /repos/ to the url which does not work for Enterprise github instance.

@kohsuke
Copy link
Collaborator

kohsuke commented Jun 3, 2016

I don't have ready access to GHE. Can you give me what URL it's accessing and what it should be instead?

I'm quite a bit surprised that something this basic has escaped everyone's attention thus far. Are you sure this is a problem in the library, as opposed to your deployment?

@jdeanquin-dg
Copy link

jdeanquin-dg commented Sep 2, 2016

Hello @ramachandranbakthavachalam the following code gets a pullRequest from my enterprise repository
GitHub github = GitHub.connect("myUsername", "MyToken");
GHRepository repo = github.getRepository("myOrganisation/theRepo");
GHPullRequest pullRequest = repo.getPullRequest(41);

@Shredder121
Copy link
Contributor

Maybe you have a token that doesn't include the necessary visibility?
GitHub tends to return 404s if you are not allowed to see something.

@kohsuke
Copy link
Collaborator

kohsuke commented Nov 26, 2016

Looks like the problem was in the reporter's access control or usage.

@kohsuke kohsuke closed this as completed Nov 26, 2016
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

No branches or pull requests

4 participants