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

Method constructor

ng-dev/pr/merge/merge-tool.ts:61–71  ·  view source on GitHub ↗
(
    public config: NgDevConfig<{
      pullRequest: PullRequestConfig;
      github: GithubConfig;
    }>,
    public git: AuthenticatedGitClient,
    flags: Partial<PullRequestMergeFlags>,
  )

Source from the content-addressed store, hash-verified

59/** Extracts a human-readable failure message from known error types. */
60export function getErrorMessage(error: unknown): string {
61 if (error instanceof InvalidTargetBranchError || error instanceof InvalidTargetLabelError) {
62 return error.failureMessage;
63 }
64 if (error instanceof Error) {
65 return error.message;
66 }
67 return String(error);
68}
69
70const defaultPullRequestMergeFlags: PullRequestMergeFlags = {
71 branchPrompt: true,
72 forceManualBranches: false,
73 dryRun: false,
74 ignorePendingReviews: false,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected