diff --git a/.maintenance/src/Contrib_List_Command.php b/.maintenance/src/Contrib_List_Command.php index eaf3e4a..d62fb28 100644 --- a/.maintenance/src/Contrib_List_Command.php +++ b/.maintenance/src/Contrib_List_Command.php @@ -33,10 +33,12 @@ final class Contrib_List_Command { * @when before_wp_load */ public function __invoke( $args, $assoc_args ) { + $repos = null; + $use_bundle = false; - $repos = null; - $milestone_names = null; - $use_bundle = false; + $ignored_contributors = [ + 'github-actions[bot]', + ]; if ( count( $args ) > 0 ) { $repos = [ array_shift( $args ) ]; @@ -196,6 +198,8 @@ function ( $a, $b ) { } } + $contributors = array_diff( $contributors, $ignored_contributors ); + WP_CLI::log( 'Total contributors: ' . count( $contributors ) ); WP_CLI::log( 'Total pull requests: ' . $pull_request_count );