The best way to control Claude Code, Codex and more from any computer or phone

main
ts 27 lines 1013 Bytes
Raw
1 import * as Pulls from "@distilled.cloud/github/pulls";
2 import * as Layer from "effect/Layer";
3 import * as BindingHttp from "./BindingHttp.ts";
4 import {
5 ListPullRequestReviewComments,
6 type ListPullRequestReviewCommentsRequest,
7 } from "./ListPullRequestReviewComments.ts";
8
9 export const listPullRequestReviewCommentsOperation = BindingHttp.operation(
10 "pulls.listReviewComments",
11 (repo) => (request: ListPullRequestReviewCommentsRequest) =>
12 Pulls.listReviewComments({ owner: repo.owner, repo: repo.repository, ...request }),
13 );
14
15 /**
16 * Token-backed implementation of {@link ListPullRequestReviewComments}. Provide it on a Worker or
17 * Function: it captures a `GitHub.PersonalAccessToken` for the host and binds
18 * the token and the repository into it.
19 *
20 * @layer
21 * @product Pull Request
22 * @provides GitHub.ListPullRequestReviewComments
23 */
24 export const ListPullRequestReviewCommentsHttp = Layer.effect(
25 ListPullRequestReviewComments,
26 BindingHttp.make(listPullRequestReviewCommentsOperation),
27 );