Skip to content
Snippets Groups Projects
Commit 417f0426 authored by michael.minelli's avatar michael.minelli
Browse files

Config => Add baseFiles and filename to enonce

parent 178bbc1f
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ class Config {
};
public enonce: {
default: { description: string; initReadme: boolean; sharedRunnersEnabled: boolean; visibility: string; wikiEnabled: boolean; template: string };
default: { description: string; initReadme: boolean; sharedRunnersEnabled: boolean; visibility: string; wikiEnabled: boolean; template: string }; baseFiles: Array<string>; filename: string
};
public exercice: {
......@@ -64,7 +64,9 @@ class Config {
visibility : process.env.ENONCE_DEFAULT_VISIBILITY,
wikiEnabled : process.env.ENONCE_DEFAULT_WIKI_ENABLED.toBoolean(),
template : process.env.ENONCE_DEFAULT_TEMPLATE.replace('{{USERNAME}}', this.gitlab.account.username).replace('{{TOKEN}}', this.gitlab.account.token)
}
},
baseFiles: JSON.parse(process.env.ENONCE_BASE_FILES || '[]'),
filename : process.env.ENONCE_FILENAME || ''
};
this.exercice = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment