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

Function createPr

scripts/utils/github.ts:125–140  ·  view source on GitHub ↗
(options: {
  title: string;
  body: string;
  head: string;
  base: string;
})

Source from the content-addressed store, hash-verified

123 * Create a new PR
124 */
125export async function createPr(options: {
126 title: string;
127 body: string;
128 head: string;
129 base: string;
130}) {
131 let response = await request("POST /repos/{owner}/{repo}/pulls", {
132 ...requestOptions(),
133 title: options.title,
134 body: options.body,
135 head: options.head,
136 base: options.base,
137 });
138
139 return response.data;
140}
141
142/**
143 * Update an existing PR

Callers 1

mainFunction · 0.90

Calls 2

requestOptionsFunction · 0.85
requestFunction · 0.50

Tested by

no test coverage detected