(api: GitClient, id: number)
| 24 | * cannot be found, or the repository is not existing/visible. |
| 25 | */ |
| 26 | export 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 |
no test coverage detected