feat(dev-infra): integrate merge script into ng-dev cli (#37138)
Integrates the merge script into the `ng-dev` CLI. The goal is that caretakers can run the same command across repositories to merge a pull request. The command is as followed: `yarn ng-dev pr merge <number>`. PR Close #37138
This commit is contained in:

committed by
Kara Erickson

parent
318e9372c9
commit
8a3493af47
20
dev-infra/utils/console.ts
Normal file
20
dev-infra/utils/console.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google LLC All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {prompt} from 'inquirer';
|
||||
|
||||
/** Prompts the user with a confirmation question and a specified message. */
|
||||
export async function promptConfirm(message: string, defaultValue = false): Promise<boolean> {
|
||||
return (await prompt<{result: boolean}>({
|
||||
type: 'confirm',
|
||||
name: 'result',
|
||||
message: message,
|
||||
default: defaultValue,
|
||||
}))
|
||||
.result;
|
||||
}
|
Reference in New Issue
Block a user