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

Function addPrLabels

scripts/utils/github.ts:246–252  ·  view source on GitHub ↗
(prNumber: number, labels: string[])

Source from the content-addressed store, hash-verified

244 * Add labels to a PR (or issue)
245 */
246export async function addPrLabels(prNumber: number, labels: string[]) {
247 await request("POST /repos/{owner}/{repo}/issues/{issue_number}/labels", {
248 ...requestOptions(),
249 issue_number: prNumber,
250 labels,
251 });
252}
253
254/**
255 * Remove a label from a PR (or issue)

Callers 1

mainFunction · 0.90

Calls 2

requestOptionsFunction · 0.85
requestFunction · 0.50

Tested by

no test coverage detected