-
-
Save petertwise/fea5758cf91d651361e2f834371e06d2 to your computer and use it in GitHub Desktop.
A plugin to ignore specific repositories from Git Updater
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: Git Updater Ignore | |
* Plugin URI: https://gist.github.com/afragen/414612961ac500b652862096a54d62d7 | |
* Description: This plugin is used to set Git Updater to ignore specific repository slugs. | |
* Version: 0.3 | |
* Author: Andy Fragen | |
* License: MIT | |
* Requires at least: 5.2 | |
* Requires PHP: 5.6 | |
* Gist Plugin URI: https://gist.github.com/afragen/414612961ac500b652862096a54d62d7 | |
*/ | |
namespace Fragen\Git_Updater; | |
add_action( | |
'plugins_loaded', | |
function() { | |
if ( class_exists( 'Fragen\Git_Updater\Ignore' ) ) { | |
new Ignore( 'test-bitbucket-plugin', 'test-bitbucket-plugin/test-bitbucket-plugin.php' ); | |
new Ignore( 'test-bitbucket-child', 'test-bitbucket-child/style.css' ); | |
new Ignore( 'test-plugin', 'test-plugin/test-plugin.php' ); | |
} | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment