23 lines · 942 B · TypeScript
RawDownload
import { WS_METHODS } from "@t3tools/contracts";import { Atom } from "effect/unstable/reactivity"; import { createEnvironmentRpcCommand, createEnvironmentRpcQueryAtomFamily } from "./runtime.ts";import type { EnvironmentRegistry } from "../connection/registry.ts";import { vcsCommandConcurrency, vcsCommandScheduler } from "./vcsCommandScheduler.ts"; export function createGitEnvironmentAtoms<R, E>(  runtime: Atom.AtomRuntime<EnvironmentRegistry | R, E>,) {  return {    pullRequestResolution: createEnvironmentRpcQueryAtomFamily(runtime, {      label: "environment-data:git:resolve-pull-request",      tag: WS_METHODS.gitResolvePullRequest,    }),    preparePullRequestThread: createEnvironmentRpcCommand(runtime, {      label: "environment-data:git:prepare-pull-request-thread",      tag: WS_METHODS.gitPreparePullRequestThread,      scheduler: vcsCommandScheduler,      concurrency: vcsCommandConcurrency,    }),  };}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t