Skip to content

Commit a498ec7

Browse files
authored
Merge pull request #311 from junpataleta/master2main
Remove the check and warning for master branch usage
2 parents 3842ad1 + 4360ee3 commit a498ec7

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/Command/InstallCommand.php

-11
Original file line numberDiff line numberDiff line change
@@ -62,17 +62,6 @@ protected function configure(): void
6262
$extra = getenv('EXTRA_PLUGINS_DIR') !== false ? getenv('EXTRA_PLUGINS_DIR') : null;
6363
$node = getenv('NODE_VERSION') !== false ? getenv('NODE_VERSION') : null;
6464

65-
// Emit a warning/annotation under GHA if the branch is master (recommending to move to main).
66-
// @codeCoverageIgnoreStart
67-
if (getenv('GITHUB_ACTIONS')) { // Only show annotations in GitHub Actions.
68-
if ($branch === 'master') { // And only if the branch being used is master.
69-
echo '::warning title=`master` branch use detected::The `master` branch of Moodle has been ' .
70-
'moved to `main` and will stop working soon. Please consider moving to `main` in your ' .
71-
'workflows. Ref.: MDLSITE-7418' . PHP_EOL;
72-
}
73-
}
74-
// @codeCoverageIgnoreEnd
75-
7665
// As there is not only Travis CI, it can also be passed a generic environment variable.
7766
if (null === $plugin) {
7867
$plugin = getenv('CI_BUILD_DIR') !== false ? getenv('CI_BUILD_DIR') : null;

0 commit comments

Comments
 (0)