MCPcopy Create free account
hub / github.com/angular/dev-infra / handler

Function handler

ng-dev/pr/merge/cli.ts:58–73  ·  view source on GitHub ↗

Handles the command.

({
  pr,
  branchPrompt,
  forceManualBranches,
  dryRun,
  ignorePendingReviews,
  waitForValidations,
}: Arguments<MergeCommandOptions>)

Source from the content-addressed store, hash-verified

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. */
66async 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,

Callers

nothing calls this directly

Calls 1

mergePullRequestFunction · 0.85

Tested by

no test coverage detected