Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(source-control): PullRequestService reads GitHub resolvers, not its kind #17619

Mergedjuliusmarmingemerged 1 commit intot3/source-control-gitmanager-capabilities fromrefs/pull/17619/headmerged by juliusmarminge View on GitHub

Showing 11 changed files with 22 additions and 8 deletions (loading 8).

x
0 of 11 viewed, 11 left
2 additions and 0 deletionsapps/server/src/pullRequest/PullRequestService.test.tsModified
View file
@@ -463,6 +463,8 @@
setReaction: () => Effect.void,
listReviewerCandidates: () => Effect.succeed({ candidates: [], truncated: false }),
setReviewerRequest: () => Effect.void,
+ // GitHub's own merge message rewrite, which the service reads instead of the kind.
+ ...(kind === "github" ? { mergeMessageRewrite: (message: string) => message } : {}),
...overrides,
12 additions and 7 deletionsapps/server/src/pullRequest/PullRequestService.tsModified
View file
@@ -77,7 +77,6 @@
import { resolveProjectSettings } from "@t3tools/shared/projectSettings";
import { detectSourceControlProviderFromRemoteUrl } from "@t3tools/shared/sourceControl";
​
-import { AllowGitHubReserve } from "@t3tools/source-control-github/server/GitHubApi";
import * as ProjectService from "../project/ProjectService.ts";
import * as ServerSettings from "../serverSettings.ts";
import * as PullRequestFilesViewed from "../persistence/PullRequestFilesViewed.ts";
@@ -557,7 +556,7 @@
Effect.flatMap((lease) =>
effect.pipe(
- Effect.provideService(AllowGitHubReserve, allowPaused),
+ Effect.provideService(SourceControlRateLimit.Interactive, allowPaused),
Effect.tap(() => limits.recordSuccess({ ...key, lease })),
Effect.tapError((error) =>