1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

chore: Skip picking PRs in CI for daily alpha

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton 2023-05-02 13:07:51 -04:00
parent 2a9a1b43c1
commit d625709f53
2 changed files with 3 additions and 2 deletions

View File

@ -28,4 +28,5 @@ jobs:
npm run create-release-pr npm run create-release-pr
env: env:
BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes BUMP_PACKAGE_ARGS: -- --conventional-commits --conventional-prerelease --yes
PICK_ALL_PRS: "true"
GH_TOKEN: ${{ secrets.GH_TOKEN }} GH_TOKEN: ${{ secrets.GH_TOKEN }}

View File

@ -206,7 +206,7 @@ function sortExtendedGithubPrData(left: ExtendedGithubPrData, right: ExtendedGit
} }
async function getRelevantPRs(previousReleasedVersion: string, baseBranch: string): Promise<ExtendedGithubPrData[]> { async function getRelevantPRs(previousReleasedVersion: string, baseBranch: string): Promise<ExtendedGithubPrData[]> {
console.log("retrieving previous 200 PRs..."); console.log(`retrieving previous 200 PRs from ${baseBranch}...`);
const milestone = formatVersionForPickingPrs(await getCurrentVersionOfSubPackage("core")); const milestone = formatVersionForPickingPrs(await getCurrentVersionOfSubPackage("core"));
const getMergedPrsArgs = [ const getMergedPrsArgs = [
@ -334,7 +334,7 @@ async function pickRelevantPrs(prs: ExtendedGithubPrData[], isMasterBranch: bool
throw new Error("Cannot pick relevant PRs for release if there are none. Are the milestones on github correct?"); throw new Error("Cannot pick relevant PRs for release if there are none. Are the milestones on github correct?");
} }
if (isMasterBranch) { if (isMasterBranch || process.env.PICK_ALL_PRS === "true") {
return prs; return prs;
} }