Comments (42)
Are we looking for support for gitlab.com, a local instance of gitlab on your own server, or both?
from git-updater.
I believe they should be the same thing... The only thing that changes is the domain!
So if it works for gitlab.com, it should also work for self-hosted version simply by changing the URL...
from git-updater.
Ok, I'll definitely look into this as there are huge issues in updating Bitbucket private repos.
Hopefully I'll have some time in the next couple of weeks.
from git-updater.
Do you have any news concerning this issue? We want to set up our own GitLab Server to develop WordPress websites and it would be great if your plugin would support it.
from git-updater.
I've just started to look at the Gitlab API but I've never used it an if you have I could use some help.
from git-updater.
Branch gitlab
is starting point for integration.
from git-updater.
@afragen thanks for creating the gitlab branch.
Have started working on the gitlab integration
from git-updater.
Hey everyone! GitLab integration is now in the develop
branch. If you want to test, just use the branch switcher. 👍
It should also work with self-hosted GitLab by adding a GitLab Enterprise
header to those plugins/themes hosted there.
from git-updater.
Cool. Is it supposed to work with private Gitlab repos at this point.
Asking because i've tried and got "Download failed. Unauthorized" Not sure if because my repos server or the plugin.
from git-updater.
@lmartins you must have a GitLab private token in the settings. It seems all interaction via the GitLab API needs to be authenticated.
I haven't actually tried using a private repo, but the API didn't look like it was any different. I will check it out.
from git-updater.
@afragen Im on the develop branch but the settings don't have any input for the Gitlab credentials.
from git-updater.
Do you have any GitLab hosted plugin's installed?
The setting is not displayed unless there are any. Installing public GitLab repos doesn't require a private token, but updating does.
I also have to do more testing with private repos.
from git-updater.
Not sure im following, should I put the complete URL into the "Plugin URI" field?
I mean since this is a private Gitlab install Im guessing this is the only way to tell the plugin where to look at.
Still, when I insert http://git.multiweb.pt/multiweb/social-icons-widget
into that field, I get as response:
Downloading install package from https://gitlab.com/multiweb/social-icons-widget/repository/archive.zip?ref=master…
Download failed. Unauthorized
The plugin seems to be translating the URL to something under the gitlab.com domain, which isn't the case here.
from git-updater.
Darn I thought I had this worked out. Can you make sure you're on the latest develop by using the branch switch feature and reinstalling the develop branch. After doing this please try again and let me know.
from git-updater.
Sorry, I thought I put this in. I forgot. I'll have it fixed later tonight as I'm on the road right now.
from git-updater.
No stress Andy, and many thanks for all the help.
from git-updater.
Try now. I tried to test using the URI above but kept getting timeout errors.
from git-updater.
Hi Andy, the timeouts you're getting are normal, this server doesn't accept external connections.
I've tried again and I can now install plugins. Once I do that, im now getting two error messages:
Social Icons (Webipack) was not checked. GitHub Updater Error Code: 401
There is probably an error on the GitHub Updater Settings page.
and
You must set a GitLab Private Token.
Saving the private token in the plugin settings seems to make no difference.
from git-updater.
If you go to the settings page you should see a space for setting the GitLab Enterprise Private Token. You will need to fill that in.
from git-updater.
I should have been clearer about that, those error messages persist after I fill that field with my account token.
from git-updater.
The error is an authentication error. Can you post a screenshot of the settings page with blurred out tokens?
from git-updater.
Unfortunately I don't have access to a GitLab Enterprise installation. It makes debugging difficult.
If anyone can give me an account to test with that would be great.
from git-updater.
Heres the screenshot:
http://snpy.link/p2M39V
from git-updater.
Can you show the headers for the plugin? It should have the GitLab Enterprise
header that has the base URI for your git server. In this case, GitLab Enterprise: http://git.multiweb.pt
If this header is missing you won't see the setting to put in your GitLab Enterprise Private Token.
from git-updater.
This is what I have on the plugin headers:
Gitlab Plugin URI: http://git.multiweb.pt/multiweb/social-icons-widget
Gitlab Branch: master
Github Updater it is indeed asking for the private token, as you can see on the screenshot: http://snpy.link/p2M39V
But upon save that setting the error notification stays present.
from git-updater.
Could the problem be similar to issue #232 ?
from git-updater.
Not really sure, although id doesn't sound like that.
from git-updater.
@lmartins that's not the correct private token for a GitLab Enterprise hosted plugin/theme.
If the plugin/theme doesn't have the GitLab Enterprise
header you won't see that setting section.
You must add GitLab Enterprise: http://git.multiweb.pt
from git-updater.
The following headers:
GitLab Plugin URI: https://gitlab.com/afragen/test-gitlab-plugin2/
GitLab Branch: master
GitLab Enterprise: http://gitlab.example.com
makes this show up in the Settings.
from git-updater.
Ouch, I missed that info and seeing the field "GitLab Private Token" I though that was it. Was unaware of the another value for Enterprise.
I don't think that what I have is an Enterprise service. We have a CE edition Gitlab self hosted which I believe is a bit different. I'll try get it working and let you know what I find.
from git-updater.
I think the Enterprise refers to self hosted.
from git-updater.
Not really, the enterprise is the paid version of their service:
https://about.gitlab.com/features/
Sent from my iPhone
On 08/05/2015, at 21:56, Andy Fragen [email protected] wrote:
I think the Enterprise refers to self hosted.
—
Reply to this email directly or view it on GitHub.
from git-updater.
Is the base URI for GtiLab Enterprise different than https://gitlab.com
?
Isn't GitLab Enterprise still self-hosted?
from git-updater.
To anyone using a self-hosted Gitlab CE and Github Updater, have you managed to find the "GitLab CE or GitLab Enterprise Private Token" info?
Github updater asks for two values, "GitLab Private Token" (which is available in the user account) and the one I mention above that I can't find anywhere.
from git-updater.
@lmartins are you referring to the setting in GHU or a private token listed in GitLab CE/Enterprise?
from git-updater.
@afragen
Im referring to the second of the two inputs after GHU installs a plugin from Gitlab.
The plugin has now the header as you mention, removed and reinstalled just to be sure.
Regarding the last question, I thing self-hosted would be adequate to both version CE and Enterprise. Im just wondering if there's really two tokens for the Gitlab's CE, as I've failed to find one on our install. That was the confirmation I was looking for.
Also considering that the user token gives him rights to use Gitlab's API, im not sure what would be the use of the "generic" token, but this is just me trying to understand what im failing to grasp.
from git-updater.
The first token is for GitLab.com. The second token would be for any self-hosted GitLab.
from git-updater.
If you aren't using a plugin from GitLab.com then you shouldn't get an error asking for that token. If I can figure out a way to hide it I will as that should avoid confusion.
from git-updater.
I've also been thinking about it and perhaps using the term Enterprise might be better. 2 of the self hosted solutions use this term, GitLab CE being the third.
from git-updater.
OK, accepted headers are GitLab CE
and GitLab Enterprise
. The Settings are more explicit and report a GitLab.com Private Token or a GitLab CE or GitLab Enterprise Private Token.
Please test and let me know how it works. Thanks.
from git-updater.
I've deleted a number of my posts here that referred to different headers so as to not be confusing.
from git-updater.
Closing as this should now be feature-complete and in develop
.
from git-updater.
Related Issues (20)
- New version details extracted from git master vs last release HOT 31
- Version 12.1.3 and WordPress 6.2 causes PHP error in backend (PHP8.0) HOT 1
- 'We made a few tweaks to the plugin, Opt in to make "Git Updater" better'! link broken HOT 4
- Problem of CSS layout in changelog tab HOT 6
- Version number issue: Version: 0.2.41 does not update to Version: 0.2.5 HOT 1
- 404 Error can't get updates HOT 4
- An error occurred while updating WebHeroe: Update package not available. HOT 4
- Persistent license reminder on network admin screens on multisite installs HOT 4
- Cron refresh never finishes HOT 1
- GitHub Updater Error Code: 401 HOT 1
- Consider `main` as default branch (instead of `master`) HOT 1
- Possible to include branch name in assets? HOT 2
- "Doing it wrong" message in Query Monitor HOT 2
- GitHub Access Token disappears HOT 5
- Análisis Auth
- discouraged Improvements HOT 1
- Please be patient while WP-Cron finishes making API calls. HOT 5
- Header information HOT 1
- Theme deleted during update HOT 8
- Dockerized Project - style.css not in the root of the repo HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-updater.