mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
trim some outputs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
54b75e50b0
commit
788e68d2b4
@ -89,8 +89,8 @@ console.log(`current version: ${currentVersion.format()}`);
|
|||||||
console.log("fetching tags...");
|
console.log("fetching tags...");
|
||||||
await execP("git fetch --tags --force");
|
await execP("git fetch --tags --force");
|
||||||
|
|
||||||
const prBase = (await execP("git branch --show-current", { encoding: "utf-8" })).stdout;
|
const prBase = (await execP("git branch --show-current", { encoding: "utf-8" })).stdout.trim();
|
||||||
const tagListBody = (await execP("git tag --list", { encoding: "utf-8" })).stdout;
|
const tagListBody = (await execP("git tag --list", { encoding: "utf-8" })).stdout.trim();
|
||||||
const actualTags = tagListBody.split(/\r?\n/).map(line => line.trim());
|
const actualTags = tagListBody.split(/\r?\n/).map(line => line.trim());
|
||||||
const [previousReleasedVersion] = actualTags
|
const [previousReleasedVersion] = actualTags
|
||||||
.map(semverValid)
|
.map(semverValid)
|
||||||
@ -130,7 +130,7 @@ const getMergedPrsArgs = [
|
|||||||
];
|
];
|
||||||
|
|
||||||
console.log("retreiving last 500 PRs to create release PR body...");
|
console.log("retreiving last 500 PRs to create release PR body...");
|
||||||
const mergedPrs = JSON.parse((await execP(getMergedPrsArgs.join(" "), { encoding: "utf-8" })).stdout);
|
const mergedPrs = JSON.parse((await execP(getMergedPrsArgs.join(" "), { encoding: "utf-8" })).stdout.trim());
|
||||||
const milestoneRelevantPrs = mergedPrs.filter(pr => pr.milestone && pr.milestone.title === currentVersionMilestone);
|
const milestoneRelevantPrs = mergedPrs.filter(pr => pr.milestone && pr.milestone.title === currentVersionMilestone);
|
||||||
const relaventPrsQuery = await Promise.all(
|
const relaventPrsQuery = await Promise.all(
|
||||||
milestoneRelevantPrs.map(async pr => ({
|
milestoneRelevantPrs.map(async pr => ({
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user