Skip to content

Commit 19df1e2

Browse files
committed
[FEATURE] ♻️ !! Switch to main as default branch
Use `main` instead of `master` as default branch from now on.
1 parent 84c0605 commit 19df1e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/RoboFile.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function patch(array $options = [
3333
'working-directory|d' => null,
3434
'patch-source-directory|s' => null,
3535
'patch-name|p' => 'template',
36-
'source-branch' => 'master', // rename to main in next mayor release
36+
'source-branch' => 'main',
3737
'branch-name' => null,
3838
'halt-before-commit' => false,
3939
]): int

tests/unit/PatchbotCommandsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ public static function loadFixtures(): void
3030
exec('git clone ' . self::$bareRepository . ' ' . $tmpDirectory . ' 2> /dev/null');
3131
chdir($tmpDirectory);
3232
exec('git config --global user.email "[email protected]" && git config --global user.name "Patchbot"');
33-
exec('git checkout --orphan master 2> /dev/null');
33+
exec('git checkout --orphan main 2> /dev/null');
3434
file_put_contents($tmpDirectory . 'README.md', '# ACME Project' . PHP_EOL . 'Hello World' . PHP_EOL . PHP_EOL);
3535
exec('git add -A');
3636
exec('git commit -a -m "Add README"');
37-
exec('git push origin master 2> /dev/null');
37+
exec('git push origin main 2> /dev/null');
3838
}
3939
}
4040

0 commit comments

Comments
 (0)