GitLab updater archived
♻️ WordPress plugin to get updates for themes and plugins from private GitLab repos — can also be implemented into a plugin or theme.
by Florian Brinkmann · github.com/krafit/wp-gitlab-updater · website
★ 57stars
24forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/krafit/wp-gitlab-updater/archive/refs/heads/master.zipDeclares an update source (Moenus/wp-gitlab-updater), so updates arrive through the plugin's own updater.
From the readme
WordPress plugin and theme updates from private GitLab repos
You can use this as a WordPress plugin (for example, if you have
multiple themes and/or plugins in one WP installation, which
should be updated with the script), or include it directly in a theme or plugin.
The script uses the GitLab tags to check for a new version.
Usage as a WordPress plugin
Just download the repo and upload the ZIP as a new plugin to
your WordPress install or use the GitHub updater plugin.
After that, you will find a new options page under Settings › GitLab Updater. There
you can find all installed themes and plugins, and fields to insert the needed data
to make one or more of them use your GitLab repo as update source.
Search the theme or plugin in the list and insert the following data:
Access token is the GitLab API access token
(needs »api« and »readregistry« scope. If you use the gitlab.com version, you can create the token here: gitlab.com/profile/personalaccesstokens). The safest way
might be to create the access token for an external user with
the role »reporter«, who has only access to the theme repo.
Project features like wiki and issues can be hidden from external users.
GitL