-
Notifications
You must be signed in to change notification settings - Fork 86
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
Gitbucket support #142
Comments
never heard of it up until now, so for sure it'd be a great addition. Though, it does not look like there's an existing python library to interace gitbucket's API. If it does not, someone should start implementing it 😉 |
It has an API very similar to GitHub Pro, so one of the libraries which supports that should work. |
if that's really the case, then it should already be supported, You just need to setup a custom fqdn for the gitbucket you're targetting. Only caveat: it only supports fqdn, not subdirs ( |
@guyzmo Is git-repo really supports GitHub Enterprise? I run
But, username/password must be github.com account. And it creates github.com's personal access token. This shows git-repo connects to github.com. Even if supported GHE, GitBucket doesn't support many features such as authorization API, etc. |
@guyzmo I wrote gitbucket.py module, quick-and-dirty. It can only login and few tasks. Because GitBucket lacks some important API. |
On Sat, Mar 18, 2017 at 12:06:26PM -0700, Yuusuke KOUNOIKE wrote:
@guyzmo Is git-repo really supports GitHub Enterprise?
I think no, because [gh.login](https://github.com/guyzmo/git-repo/blob/5945e20656cbeb9c0320d860301d6c25fd891ca9/git_repo/services/ext/github.py#L306) doesn't pass url to github3.py.
[github3.login](https://github3py.readthedocs.io/en/master/api.html#github3.login) requires url for GHE login.
the `git repo config` stage is just a helper, it is not the tool. You
can try to configure manually the tool using advices from the help page.
That being said, adding the url parameter doesn't cost much to add.
But, username/password must be github.com account. And it creates github.com's personal access token. This shows git-repo connects to github.com.
The `git repo config` helper is only used to generate the configuration
file. Once this is done, git-repo relies on what you wrote in the
configuration to communicate with the remote service.
Is there a gitbucket public instance available for testing?
Even if supported GHE, GitBucket doesn't support many features such as
[authorization](https://developer.github.com/v3/oauth_authorizations/#create-a-new-authorization)
API, etc. Maybe git-repo doesn't work with GitBucket. (But it is
GitBucket's issue.)
it's a good thing we don't use oauth then for git-repo ☺
…--
Guyzmo
|
that would be lovely ♥ !!! |
https://gitbucket.github.io/gitbucket-news/ has "Demo" link to https://gitbucket.herokuapp.com/ and Chat link. I don't know this demo site's configuration. It can login with GitBucket's default admin id/pw. |
@kounoike , I guess you could add 'fetch PR' action to your module, as it only needs to convert a PR id to Are there open bugs for the missing 'list PR'/'list issue' API in gitbucket? I'd like to track those bugs as that is the functionality that I am looking for. |
@jayvdb fetch PR works partially correct. But it fetched to `request/github/1'. I think it should be 'request/gitbucket/1'. And message shows as followed:
(I'm reading code...) Ah, it is hard-coded in GithubService.request_fetch. GitbucketService is the class inherits GithubService. And some error exists on self.repo_slug. |
for the refspec, it can be easily patched, using the service name in the format instead of the |
First anniversary release 🎂 This release marks the first anniversary and 10th release of git-repo 🎉 Now git-repo supports 6 git services: github, gitlab, bitbucket, gogs, gitea and gitbucket It supports the following commands: clone, fork, create, delete, add, open, ls, request, gist And it's becoming relatively stable (keep sending bug reports 🙏) ♥ Contributors Thanks to @kounoike for the gitbucket support 🙌 Now there are three contributors promoted to collaborators: * @kounoike, @pyhedgehog and @Crazybus 🚧 Features * When add has no parameters, add default remote #100 #141 * When add has 'upstream' parameter, add the upstream remote #99 #141 * Use default branch instead of hardcoded 'master' #91 * Refactor and complete bitbucket support #43 #11 #80 #14 #89 #90 #79 * Loosen versions of dependencies #133 * Report if the service is already setup #136 * Adds GitBucket support #142 #144 * Adds support for ssh:// URL #148 🚒 Bugfixes * fix various crashes #152 * fix gitlab clone crash #129 * fix request create command #147 #127 * fix request fetch command #138 #131 * fix wizard crash #149 * fix mishandling of renamed gitlab project urls #137 📝 Documentation * documentation #145 Signed-off-by: Guyzmo <guyzmo+github+pub@m0g.net>
https://github.com/gitbucket/gitbucket is a self-hosted OSS like GitLab and gogs.
The text was updated successfully, but these errors were encountered: