Handles the command.
({
pr,
branchPrompt,
forceManualBranches,
dryRun,
ignorePendingReviews,
waitForValidations,
}: Arguments<MergeCommandOptions>)
| 56 | description: 'Bypass the check for pending reviews on the pull request', |
| 57 | }) |
| 58 | .option('wait-for-validations' as 'waitForValidations', { |
| 59 | type: 'boolean', |
| 60 | default: false, |
| 61 | description: 'Wait for pending validations to complete before merging.', |
| 62 | }); |
| 63 | } |
| 64 | |
| 65 | /** Handles the command. */ |
| 66 | async function handler({ |
| 67 | prs, |
| 68 | pr, |
| 69 | branchPrompt, |
| 70 | forceManualBranches, |
| 71 | dryRun, |
| 72 | ignorePendingReviews, |
| 73 | waitForValidations, |
| 74 | }: Arguments<MergeCommandOptions>) { |
| 75 | await mergePullRequests(prs ?? pr, { |
| 76 | branchPrompt, |
nothing calls this directly
no test coverage detected