mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
fix: Add check in release-tool for no relevant PRs
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
fef9443064
commit
8a79482bde
@ -316,6 +316,10 @@ async function cherryPickCommits(prs: ExtendedGithubPrData[]): Promise<void> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function pickRelevantPrs(prs: ExtendedGithubPrData[], isMasterBranch: boolean): Promise<ExtendedGithubPrData[]> {
|
async function pickRelevantPrs(prs: ExtendedGithubPrData[], isMasterBranch: boolean): Promise<ExtendedGithubPrData[]> {
|
||||||
|
if (prs.length === 0) {
|
||||||
|
throw new Error("Cannot pick relevant PRs for release if there are none. Are the milestones on github correct?");
|
||||||
|
}
|
||||||
|
|
||||||
if (isMasterBranch) {
|
if (isMasterBranch) {
|
||||||
return prs;
|
return prs;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user