The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import * as Layer from "effect/Layer"; |
| 2 | import * as BindingLocal from "./BindingLocal.ts"; |
| 3 | import type { Credentials } from "./Credentials.ts"; |
| 4 | import { GetPullRequest } from "./GetPullRequest.ts"; |
| 5 | import { getPullRequestOperation } from "./GetPullRequestHttp.ts"; |
| 6 | |
| 7 | /** |
| 8 | * Implementation of {@link GetPullRequest} with the provider's current credentials. |
| 9 | * Provide it on an `Action` or another deploy-time Effect. |
| 10 | * |
| 11 | * @layer |
| 12 | * @product Pull Request |
| 13 | * @provides GitHub.GetPullRequest |
| 14 | */ |
| 15 | export const GetPullRequestLocal: Layer.Layer<GetPullRequest, never, Credentials> = Layer.effect( |
| 16 | GetPullRequest, |
| 17 | BindingLocal.make(getPullRequestOperation) as never, |
| 18 | ); |