From: Wouter Admiraal Date: Tue, 19 Feb 2019 10:06:47 +0000 (+0100) Subject: SONAR-11704 Update Bitbucket Cloud widgets X-Git-Tag: 7.7~73 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f418f9fe051829462ca90422d2e8d3f83ccb5098;p=sonarqube.git SONAR-11704 Update Bitbucket Cloud widgets --- diff --git a/server/sonar-web/src/main/js/app/types.d.ts b/server/sonar-web/src/main/js/app/types.d.ts index c0df280656a..2d4f5518f90 100644 --- a/server/sonar-web/src/main/js/app/types.d.ts +++ b/server/sonar-web/src/main/js/app/types.d.ts @@ -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; };