Skip to content

Commit 91b7368

Browse files
committed
fix(chat): allow /upgradesFindCL to work on all roller Chromium branches
1 parent 4901caa commit 91b7368

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/chat/commands/upgradesFindCL.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,12 @@ export async function upgradesFindCL(
806806
cwd: electronRoot.fsPath,
807807
encoding: "utf8",
808808
}).then(({ stdout }) => stdout.trim());
809-
if (branchName !== "roller/chromium/main") {
809+
if (
810+
branchName !== "roller/chromium/main" &&
811+
!/^roller\/chromium\/\d+-x-y$/.test(branchName)
812+
) {
810813
stream.markdown(
811-
"Confirm you have a Chromium roll branch checked out - only `roller/chromium/main is supported for now.",
814+
"Confirm you have a Chromium roll branch checked out - only `roller/chromium/main` and `roller/chromium/*-x-y` are supported.",
812815
);
813816
return {};
814817
}
@@ -825,7 +828,7 @@ export async function upgradesFindCL(
825828
compareChromiumVersions(versions.newVersion, versions.previousVersion) <= 0
826829
) {
827830
stream.markdown(
828-
"Chromium version in this branch is the same or older than `origin/main`.",
831+
"Chromium version in this branch is the same or older than its parent.",
829832
);
830833
return {};
831834
}

0 commit comments

Comments
 (0)