TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.75k stars 431 forks source link

External source from GitLab Private Project #769

Open calvinseng opened 5 years ago

calvinseng commented 5 years ago

Hi, is it possible to pull update from Gitlab via Private Project? How to include the API access token properly? Thanks.

jrfnl commented 5 years ago

TGMPA doesn't currently support installation of plugins from GitLab, let alone support installation from private repos. Installation from public repos on GitHub is supported.

cocodedesigns commented 5 years ago

Vaguely related (given that we're talking private repos), is there a possibility of allowing remote installation from private repos on GitHub now that they are accessible to all users?

jrfnl commented 5 years ago

@cocodedesigns How would that work ? Most, if not all of the users, won't be authorized to access the private repo.

cocodedesigns commented 5 years ago

@jrfnl I have used GitHub Updater to update plugins and themes I have developed and host in private repos, and - providing I use the right Private Access Token - I can update said themes and plugins. Would it be possible for me to declare a plugin hosted on my private repo, put the right Token into the script and have TGMPA download the plugin, rather than including the latest version each time I develop a new theme, or having the plugin update itself once it has been installed? Since it would have to contact GitHub anyway, surely cutting out the middleman and downloading it directly would be a good idea.

jrfnl commented 5 years ago

@cocodedesigns Well, I'd be open to adding that option if someone would submit a PR for it. Do keep in mind though that TGMPA will not know about new versions of the plugin you release via GH, unless the plugin itself does a call to the GH API and updates the WP available updates array with that info.