Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: choose the GitHub account per host, save a GitHub token, and fewer reads per PR action #16322

Mergedjuliusmarmingemerged 9 commits intot3code/github-api-source-control fromrefs/pull/16322/headmerged by juliusmarminge View on GitHub

Showing 34 changed files with 6 additions and 3 deletions (loading 31).

x
0 of 34 viewed, 34 left
3 additions and 1 deletionapps/server/scripts/evaluate-thread-titles.tsModified
View file
@@ -157,9 +157,11 @@
ForgejoCli.layer,
AzureDevOpsCli.layer,
// No saved credentials here; Bitbucket falls back to T3CODE_BITBUCKET_* variables.
- BitbucketApi.layer.pipe(Layer.provide(ServerSettings.layerTest())),
+ BitbucketApi.layer,
+ // Default settings: no saved Bitbucket token, gh's own GitHub account choice.
+ Layer.provide(ServerSettings.layerTest()),
Layer.provide(VcsDriverRegistry.layer.pipe(Layer.provide(VcsProjectConfig.layer))),
Layer.provide(GitVcsDriver.layer),
Layer.provide(VcsProcess.layer),
2 additions and 1 deletionapps/server/scripts/measure-pr-preview.tsModified
View file
@@ -14,6 +14,7 @@
import * as GitHubPullRequestProvider from "../src/pullRequest/GitHubPullRequestProvider.ts";
import * as GitHubApi from "../src/sourceControl/GitHubApi.ts";
import * as GitHubCredentials from "../src/sourceControl/GitHubCredentials.ts";
+import * as ServerSettings from "../src/serverSettings.ts";
import * as GitHubGraphQlBudget from "../src/sourceControl/githubGraphQlBudget.ts";
import * as SourceControlRateLimit from "../src/sourceControl/SourceControlRateLimit.ts";
import * as VcsProcess from "../src/vcs/VcsProcess.ts";
@@ -64,7 +65,7 @@
});
}),
).pipe(