From 4360ee37fa212dc694e259ef208188f542efbe9d Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Sat, 10 Aug 2024 00:02:54 +0800 Subject: [PATCH] Remove the check and warning for master branch usage --- src/Command/InstallCommand.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/Command/InstallCommand.php b/src/Command/InstallCommand.php index 827bf0ed..27abfc44 100644 --- a/src/Command/InstallCommand.php +++ b/src/Command/InstallCommand.php @@ -62,17 +62,6 @@ protected function configure(): void $extra = getenv('EXTRA_PLUGINS_DIR') !== false ? getenv('EXTRA_PLUGINS_DIR') : null; $node = getenv('NODE_VERSION') !== false ? getenv('NODE_VERSION') : null; - // Emit a warning/annotation under GHA if the branch is master (recommending to move to main). - // @codeCoverageIgnoreStart - if (getenv('GITHUB_ACTIONS')) { // Only show annotations in GitHub Actions. - if ($branch === 'master') { // And only if the branch being used is master. - echo '::warning title=`master` branch use detected::The `master` branch of Moodle has been ' . - 'moved to `main` and will stop working soon. Please consider moving to `main` in your ' . - 'workflows. Ref.: MDLSITE-7418' . PHP_EOL; - } - } - // @codeCoverageIgnoreEnd - // As there is not only Travis CI, it can also be passed a generic environment variable. if (null === $plugin) { $plugin = getenv('CI_BUILD_DIR') !== false ? getenv('CI_BUILD_DIR') : null;