mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Rename pickWhichPRsToUse
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
5c3a1eb83c
commit
123f852046
@ -199,7 +199,7 @@ const cherrypickCommitWith = (rl: ReadLine) => async (commit: string) => {
|
||||
}
|
||||
};
|
||||
|
||||
async function pickWhichCommitsToUse(prs: ExtendedGithubPrData[]): Promise<ExtendedGithubPrData[]> {
|
||||
async function pickWhichPRsToUse(prs: ExtendedGithubPrData[]): Promise<ExtendedGithubPrData[]> {
|
||||
const answers = await inquirer.prompt<{ commits: number[] }>({
|
||||
type: "checkbox",
|
||||
name: `commits`,
|
||||
@ -276,7 +276,7 @@ async function pickRelaventPrs(prs: ExtendedGithubPrData[], isMasterBranch: bool
|
||||
let selectedPrs: ExtendedGithubPrData[];
|
||||
|
||||
do {
|
||||
selectedPrs = await pickWhichCommitsToUse(prs);
|
||||
selectedPrs = await pickWhichPRsToUse(prs);
|
||||
} while (selectedPrs.length === 0 && (console.warn("[WARNING]: must pick at least once commit"), true));
|
||||
|
||||
await cherrypickCommits(selectedPrs);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user