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 Enterprise seems to be (accidentially?) not supported #35

Open
opajonk opened this issue Aug 9, 2021 · 2 comments
Open

GitHub Enterprise seems to be (accidentially?) not supported #35

opajonk opened this issue Aug 9, 2021 · 2 comments

Comments

@opajonk
Copy link

opajonk commented Aug 9, 2021

I have tried JX Updatebot 0.1.1 to create an updating PR, see https://github.com/opajonk/test_a and https://github.com/opajonk/test_b (b "depends on" a, and a contains a configuration to update b). The following command was used:

jx-updatebot pr --version 0.2.0 --auto-merge false --git-kind github --git-server https://github.com --git-username opajonk --git-token token

This worked as expected.

The exact same thing did not work when trying to use it on a GitHub Enterprise instance:

jx-updatebot pr --version 0.2.0 --auto-merge false --git-kind github --git-server https://github.enterprise.instance --git-username user --git-token token

The output is:

error: failed to create Pull Request on repository https://github.enterprise.instance/user/test_b.git: failed to create ScmClient: failed to create SCM client for https://github.enterprise.instance/user/test_b.git: failed to discover the git kind for git server https://github.enterprise.instance: failed to list SourceRepository resources in namespace default: the server could not find the requested resource (get sourcerepositories.jenkins.io)

(I had to redact the URLs / users / tokens, but other than that this is the exact message)

For me this hints to an (unexpected?) tie to public GitHub?

@opajonk
Copy link
Author

opajonk commented Aug 9, 2021

Note that I also tried to use https://github.enterprise.instance/api/v3 for --git-server, but also that did not work.

@arfciuu
Copy link

arfciuu commented Dec 28, 2022

I have the same problem for Gitlab Enterprise instance.
During the run I noticed this warning:
WARNING: no gitKind could be found for provider https://gitlab.enterprise.instance/
and the output is:

error: failed to create Pull Request on repository https://gitlab.enterprise.instance/XXX/aaaaa/bbbbbb/ccc/ddddd.git: failed to create pull request in dir /tmp/jx-git-486021386: failed to create PullRequest on https://gitlab.enterprise.instance/XXX/aaaaa/bbbbbb/ccc/ddddd.git: Gone

Any suggestions are welcome!

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

2 participants