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

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