]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-11704 Update Bitbucket Cloud widgets
authorWouter Admiraal <wouter.admiraal@sonarsource.com>
Tue, 19 Feb 2019 10:06:47 +0000 (11:06 +0100)
committerSonarTech <sonartech@sonarsource.com>
Mon, 11 Mar 2019 19:21:04 +0000 (20:21 +0100)
server/sonar-web/src/main/js/app/types.d.ts

index c0df280656acf2ef963fca8919c25fb20d2c1d55..2d4f5518f90b7ad080815ca73375b7c0ebda5793 100644 (file)
@@ -639,16 +639,18 @@ declare namespace T {
     name: string;
   }
 
+  export interface QualityGateProjectStatusCondition {
+    status: 'ERROR' | 'OK';
+    metricKey: string;
+    comparator: string;
+    periodIndex: number;
+    errorThreshold: string;
+    actualValue: string;
+  }
+
   export interface QualityGateProjectStatus {
     projectStatus: {
-      conditions?: Array<{
-        status: 'ERROR' | 'OK';
-        metricKey: string;
-        comparator: string;
-        periodIndex: number;
-        errorThreshold: string;
-        actualValue: string;
-      }>;
+      conditions?: QualityGateProjectStatusCondition[];
       ignoredConditions: boolean;
       status: string;
     };