File tree Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Expand file tree Collapse file tree 4 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export async function saveSpaceConfiguration(
42
42
const configurationBody : GitHubSpaceConfiguration = {
43
43
...spaceInstallation . configuration ,
44
44
key : crypto . randomUUID ( ) ,
45
+ configuredAt : new Date ( ) . toISOString ( ) ,
45
46
installation : installationId ,
46
47
repository : repoID ,
47
48
branch : state . branch ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { IntegrationInstallationConfiguration } from '@gitbook/api';
2
2
import type { RuntimeContext , RuntimeEnvironment } from '@gitbook/runtime' ;
3
3
4
4
export type GitHubSpaceConfiguration = {
5
+ configuredAt ?: string ;
5
6
oauth_credentials ?: {
6
7
access_token : string ;
7
8
expires_at : number ;
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ export async function saveSpaceConfiguration(
41
41
const configurationBody : GitLabSpaceConfiguration = {
42
42
...spaceInstallation . configuration ,
43
43
key : config . key || crypto . randomUUID ( ) ,
44
+ configuredAt : new Date ( ) . toISOString ( ) ,
44
45
project : projectId ,
45
46
projectName : glProject . path_with_namespace ,
46
47
branch : config . branch ,
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import { IntegrationInstallationConfiguration } from '@gitbook/api';
2
2
import type { RuntimeContext , RuntimeEnvironment } from '@gitbook/runtime' ;
3
3
4
4
export type GitLabSpaceConfiguration = {
5
+ configuredAt ?: string ;
5
6
webhookId ?: number ;
6
7
} & SpaceInstallationConfiguration ;
7
8
You can’t perform that action at this time.
0 commit comments