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

Function isPullRequestMerged

ng-dev/release/publish/pull-request-state.ts:26–32  ·  view source on GitHub ↗
(api: GitClient, id: number)

Source from the content-addressed store, hash-verified

24 * cannot be found, or the repository is not existing/visible.
25 */
26export async function isPullRequestMerged(api: GitClient, id: number): Promise<boolean> {
27 const {data} = await api.github.pulls.get({...api.remoteParams, pull_number: id});
28 if (data.merged) {
29 return true;
30 }
31 return await isPullRequestClosedWithAssociatedCommit(api, id);
32}
33
34/**
35 * Whether the pull request has been closed with an associated commit. This is usually

Callers 1

Calls 2

getMethod · 0.45

Tested by

no test coverage detected