( runtime: PRRuntime, ref: PRRef, metadata: PRMetadata, )
| 106 | * Returns null if the PR is not stacked or the API call fails. |
| 107 | */ |
| 108 | export async function fetchPRStack( |
| 109 | runtime: PRRuntime, |
| 110 | ref: PRRef, |
| 111 | metadata: PRMetadata, |
| 112 | ): Promise<PRStackTree | null> { |
| 113 | if (ref.platform === "github") return fetchGhPRStack(runtime, ref, metadata); |
| 114 | return null; // GitLab: not yet implemented |
| 115 | } |
| 116 | |
| 117 | export async function fetchPRList( |
| 118 | runtime: PRRuntime, |
nothing calls this directly
no test coverage detected