mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
more fixes
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
2d5194a24e
commit
4eb9fb222d
@ -111,6 +111,7 @@ npmVersionArgs.push("--git-tag-version false");
|
|||||||
|
|
||||||
execSync(npmVersionArgs.join(" "), { stdio: "ignore" });
|
execSync(npmVersionArgs.join(" "), { stdio: "ignore" });
|
||||||
|
|
||||||
|
const newBranchName = execSync("git branch --show-current", { encoding: "utf-8" });
|
||||||
const newVersion = new SemVer(readJsonSync("./package.json").version);
|
const newVersion = new SemVer(readJsonSync("./package.json").version);
|
||||||
|
|
||||||
const getMergedPrsArgs = [
|
const getMergedPrsArgs = [
|
||||||
@ -180,14 +181,18 @@ if (maintenencePrs.length > 0) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
execSync(`git push --set-upstream origin ${newBranchName}`);
|
||||||
|
|
||||||
const prBody = prBodyLines.join("\n");
|
const prBody = prBodyLines.join("\n");
|
||||||
const createPrArgs = [
|
const createPrArgs = [
|
||||||
"pr",
|
"pr",
|
||||||
"create",
|
"create",
|
||||||
"--base", prBase,
|
"--base", `origin/${prBase}`,
|
||||||
|
"--head", `origin/${newBranchName}`,
|
||||||
"--title", `release ${newVersion.format()}`,
|
"--title", `release ${newVersion.format()}`,
|
||||||
"--label", "skip-changelog",
|
"--label", "skip-changelog",
|
||||||
"--body-file", "-",
|
"--body-file", "-",
|
||||||
|
"--recover",
|
||||||
];
|
];
|
||||||
|
|
||||||
const createPrProcess = spawn("gh", createPrArgs, { stdio: "pipe" });
|
const createPrProcess = spawn("gh", createPrArgs, { stdio: "pipe" });
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user