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

Function createPrComment

scripts/utils/github.ts:193–204  ·  view source on GitHub ↗
(prNumber: number, body: string)

Source from the content-addressed store, hash-verified

191 * Create a comment on a PR
192 */
193export async function createPrComment(prNumber: number, body: string) {
194 let response = await request(
195 "POST /repos/{owner}/{repo}/issues/{issue_number}/comments",
196 {
197 ...requestOptions(),
198 issue_number: prNumber,
199 body,
200 },
201 );
202
203 return response.data;
204}
205
206/**
207 * Update a comment on a PR

Callers 3

runActionsFunction · 0.90
commentFunction · 0.90
cleanupFunction · 0.90

Calls 2

requestOptionsFunction · 0.85
requestFunction · 0.50

Tested by

no test coverage detected