Skip to content

Instantly share code, notes, and snippets.

@petertwise
Forked from afragen/git-updater-ignore.php
Created January 11, 2024 03:17
Show Gist options
  • Save petertwise/fea5758cf91d651361e2f834371e06d2 to your computer and use it in GitHub Desktop.
Save petertwise/fea5758cf91d651361e2f834371e06d2 to your computer and use it in GitHub Desktop.
A plugin to ignore specific repositories from Git Updater
<?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