MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / commentOnPull

Function commentOnPull

packages/wl-sdk/src/dolthub/pulls.ts:268–279  ·  view source on GitHub ↗
(opts: CommentOnPullOptions)

Source from the content-addressed store, hash-verified

266
267/** Post a comment on a pull. */
268export async function commentOnPull(opts: CommentOnPullOptions): Promise<void> {
269 const path = `${pullsPath(opts.owner, opts.db)}/${encodeURIComponent(opts.pullId)}/comments`;
270 const res = await doltFetch({
271 method: 'POST',
272 path,
273 auth: opts.auth,
274 body: { comment: opts.body },
275 fetch: opts.fetch,
276 hooks: opts.hooks,
277 });
278 expectOk(res, buildDoltUrl(path), `Comment on pull ${opts.pullId}`);
279}

Callers 1

pulls.test.tsFile · 0.90

Calls 4

doltFetchFunction · 0.90
expectOkFunction · 0.90
buildDoltUrlFunction · 0.90
pullsPathFunction · 0.85

Tested by

no test coverage detected