Skip to content

Commit 954c021

Browse files
committed
address pr comment
1 parent ea2a72d commit 954c021

File tree

1 file changed

+3
-3
lines changed
  • packages/create-flex-plugin/src/utils

1 file changed

+3
-3
lines changed

packages/create-flex-plugin/src/utils/github.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ export const parseGitHubUrl = async (url: string): Promise<GitHubInfo> => {
6767
const hasMaster = branches.find((branch) => branch.name === 'master');
6868
const hasMain = branches.find((branch) => branch.name === 'main');
6969

70-
if (hasMaster) {
71-
info.ref = 'master';
72-
} else if (hasMain) {
70+
if (hasMain) {
7371
info.ref = 'main';
72+
} else if (hasMaster) {
73+
info.ref = 'master';
7474
} else {
7575
throw new Error(ERROR_BRANCH_MASTER_MAIN);
7676
}

0 commit comments

Comments
 (0)