mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Resolve comments
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
f0ceae8c77
commit
7f928f6962
@ -22,6 +22,7 @@ const repoRoot = (await exec("git rev-parse --show-toplevel")).stdout;
|
|||||||
|
|
||||||
if (process.cwd() !== repoRoot) {
|
if (process.cwd() !== repoRoot) {
|
||||||
console.error("It looks like you are running this script from the 'scripts' directory. This script assumes it is run from the root of the git repo");
|
console.error("It looks like you are running this script from the 'scripts' directory. This script assumes it is run from the root of the git repo");
|
||||||
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
const currentVersion = new SemVer(JSON.parse((await readFile("./lerna.json", "utf-8"))).version);
|
const currentVersion = new SemVer(JSON.parse((await readFile("./lerna.json", "utf-8"))).version);
|
||||||
@ -229,7 +230,9 @@ const prBodyLines = [
|
|||||||
];
|
];
|
||||||
const prBody = prBodyLines.join("\n");
|
const prBody = prBodyLines.join("\n");
|
||||||
|
|
||||||
await exec(`git push --set-upstream origin ${prBranch}`);
|
await spawn("git", ["push", "--set-upstream", "origin", prBranch], {
|
||||||
|
stdio: "inherit",
|
||||||
|
});
|
||||||
|
|
||||||
await spawn("gh", [
|
await spawn("gh", [
|
||||||
"pr",
|
"pr",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user