MCPcopy Create free account
hub / github.com/remix-run/react-router / findOpenPr

Function findOpenPr

scripts/utils/github.ts:111–120  ·  view source on GitHub ↗
(head: string, base: string)

Source from the content-addressed store, hash-verified

109 * Find an open PR from a specific branch to a base branch
110 */
111export async function findOpenPr(head: string, base: string) {
112 let response = await request("GET /repos/{owner}/{repo}/pulls", {
113 ...requestOptions(),
114 state: "open",
115 head: `${OWNER}:${head}`,
116 base,
117 });
118
119 return response.data.length > 0 ? response.data[0] : null;
120}
121
122/**
123 * Create a new PR

Callers 1

mainFunction · 0.90

Calls 2

requestOptionsFunction · 0.85
requestFunction · 0.50

Tested by

no test coverage detected