(opts: CommentOnPullOptions)
| 266 | |
| 267 | /** Post a comment on a pull. */ |
| 268 | export 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 | } |
no test coverage detected