|
5 | 5 | */
|
6 | 6 |
|
7 | 7 | import {
|
8 |
| - AppInstallationDB, |
9 | 8 | UserDB,
|
10 | 9 | WorkspaceDB,
|
11 | 10 | DBWithTracing,
|
@@ -224,8 +223,6 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
|
224 | 223 |
|
225 | 224 | @inject(LinkedInService) private readonly linkedInService: LinkedInService,
|
226 | 225 |
|
227 |
| - @inject(AppInstallationDB) private readonly appInstallationDB: AppInstallationDB, |
228 |
| - |
229 | 226 | @inject(AuthProviderService) private readonly authProviderService: AuthProviderService,
|
230 | 227 |
|
231 | 228 | @inject(GitTokenScopeGuesser) private readonly gitTokenScopeGuesser: GitTokenScopeGuesser,
|
@@ -1849,24 +1846,10 @@ export class GitpodServerImpl implements GitpodServerWithTracing, Disposable {
|
1849 | 1846 | }
|
1850 | 1847 |
|
1851 | 1848 | async isGitHubAppEnabled(ctx: TraceContext): Promise<boolean> {
|
1852 |
| - await this.checkAndBlockUser(); |
1853 |
| - return !!this.config.githubApp?.enabled; |
| 1849 | + return false; |
1854 | 1850 | }
|
1855 | 1851 |
|
1856 |
| - async registerGithubApp(ctx: TraceContext, installationId: string): Promise<void> { |
1857 |
| - traceAPIParams(ctx, { installationId }); |
1858 |
| - |
1859 |
| - const user = await this.checkAndBlockUser(); |
1860 |
| - |
1861 |
| - if (!this.config.githubApp?.enabled) { |
1862 |
| - throw new ApplicationError( |
1863 |
| - ErrorCodes.NOT_FOUND, |
1864 |
| - "No GitHub app enabled for this installation. Please talk to your administrator.", |
1865 |
| - ); |
1866 |
| - } |
1867 |
| - |
1868 |
| - await this.appInstallationDB.recordNewInstallation("github", "user", installationId, user.id); |
1869 |
| - } |
| 1852 | + async registerGithubApp(ctx: TraceContext, installationId: string): Promise<void> {} |
1870 | 1853 |
|
1871 | 1854 | async takeSnapshot(ctx: TraceContext, options: GitpodServer.TakeSnapshotOptions): Promise<string> {
|
1872 | 1855 | traceAPIParams(ctx, { options });
|
|
0 commit comments