WP Manifestindependent plugin directory
manifest / updates / git-plugin-updates

Git Plugin Updates

Enable WordPress automatic updates for plugins hosted on Github or Bitbucket.

by Paul Clark, 10up · github.com/pdclark/git-plugin-updates · website

69stars
9forks

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/pdclark/git-plugin-updates/archive/refs/heads/develop.zip

From the readme

Usage instructions This plugin will activate updates for every plugin with a Git or Bitbucket repository in its header: / Plugin Name: Plugin Example Plugin URI: https://github.com/brainstormmedia/git-plugin-updates Git URI: https://github.com/brainstormmedia/git-plugin-updates / Either Plugin URI or Git URI can be set to your repository address. You don't need both. For private repos, you can use the URI format: https://username:password@bitbucket.org/brainstormmedia/git-plugin-updates Using as a library in your own plugins Ideally, Git Plugin Updates runs as a stand-alone plugin. However, if you would like to bundle it as a package in your own plugins to make sure updates over Git are enabled by default, you may do so by moving git-plugin-updates into your plugin directory, then activating updates with this code: addaction( 'pluginsloaded', 'myplugingitupdater' ); function myplugingitupdater() { if ( isadmin() && !classexists( 'GPUController' ) ) { requireonce dirname( FILE ) . '/git-plugin-updates/git-plugin-updates.php'; addaction( 'pluginsloaded', 'GPUController::getinstance', 20 ); } } This method allows your plugin to update over Git, and if Git

Read the full README on GitHub →