(
public config: NgDevConfig<{
pullRequest: PullRequestConfig;
github: GithubConfig;
}>,
public git: AuthenticatedGitClient,
flags: Partial<PullRequestMergeFlags>,
)
| 59 | /** Extracts a human-readable failure message from known error types. */ |
| 60 | export 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 | |
| 70 | const defaultPullRequestMergeFlags: PullRequestMergeFlags = { |
| 71 | branchPrompt: true, |
| 72 | forceManualBranches: false, |
| 73 | dryRun: false, |
| 74 | ignorePendingReviews: false, |
nothing calls this directly
no outgoing calls
no test coverage detected