Skip to content

Commit 6834870

Browse files
authored
Merge pull request #8769 from kenjis/fix-create-new-changelog.php
chore: fix `create-new-changelog.php` for minor update
2 parents 73ffc06 + 0bb4414 commit 6834870

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

admin/create-new-changelog.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ function replace_file_content(string $path, string $pattern, string $replace): v
2929
$isMinorUpdate = ($minorCurrent !== $minor);
3030

3131
// Creates a branch for release.
32-
system('git switch develop');
32+
if (! $isMinorUpdate) {
33+
system('git switch develop');
34+
}
3335
system('git switch -c docs-changelog-' . $version);
3436
system('git switch docs-changelog-' . $version);
3537

0 commit comments

Comments
 (0)