From 2e60bd838fe39baf703334fd98390c7c6bb65c2c Mon Sep 17 00:00:00 2001 From: Joel von der Weid <joel.von-der-weid@hesge.ch> Date: Tue, 2 Apr 2024 15:55:17 +0200 Subject: [PATCH] Add sonar info to types --- models/Assignment.ts | 3 +++ models/Exercise.ts | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/models/Assignment.ts b/models/Assignment.ts index 5b67023..843b6b4 100644 --- a/models/Assignment.ts +++ b/models/Assignment.ts @@ -1,6 +1,7 @@ import GitlabRepository from '../../shared/types/Gitlab/GitlabRepository'; import User from './User'; import Exercise from './Exercise'; +import SonarProjectCreation from '../../shared/types/Sonar/SonarProjectCreation'; interface Assignment { @@ -12,6 +13,8 @@ interface Assignment { gitlabLastInfoDate: string; published: boolean; useSonar: boolean; + sonarKey: string; + sonarCreationInfo: SonarProjectCreation; language: Language; staff: Array<User>; diff --git a/models/Exercise.ts b/models/Exercise.ts index 710314e..9d11073 100644 --- a/models/Exercise.ts +++ b/models/Exercise.ts @@ -2,6 +2,7 @@ import GitlabRepository from '../../shared/types/Gitlab/GitlabRepository'; import { CommitSchema } from '@gitbeaker/rest'; import User from './User'; import Assignment from './Assignment'; +import SonarProjectCreation from '../../shared/types/Sonar/SonarProjectCreation'; interface Exercise { @@ -13,6 +14,9 @@ interface Exercise { gitlabCreationInfo: GitlabRepository; gitlabLastInfo: GitlabRepository; gitlabLastInfoDate: string; + + sonarKey: string; + sonarCreationInfo: SonarProjectCreation; members: Array<User> | undefined; assignment: Assignment | undefined; -- GitLab