From: Antoine Vigneau Date: Fri, 26 May 2023 09:58:42 +0000 (+0200) Subject: SONAR-19084 Fail fast when an organisation is suspended on GitHub X-Git-Tag: 10.1.0.73491~181 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fbd4075a9c1f72360ca6031bb36426ad37940bad;p=sonarqube.git SONAR-19084 Fail fast when an organisation is suspended on GitHub --- diff --git a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubBinding.java b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubBinding.java index bb569f0db86..a7c53ee975a 100644 --- a/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubBinding.java +++ b/server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubBinding.java @@ -80,12 +80,15 @@ public class GithubBinding { Permissions permissions; @SerializedName("account") GsonAccount account; + @SerializedName("suspended_at") + String suspendedAt; - public GsonInstallation(long id, String targetType, Permissions permissions, GsonAccount account) { + public GsonInstallation(long id, String targetType, Permissions permissions, GsonAccount account, String suspendedAt) { this.id = id; this.targetType = targetType; this.permissions = permissions; this.account = account; + this.suspendedAt = suspendedAt; } public GsonInstallation() { @@ -110,6 +113,10 @@ public class GithubBinding { return account; } + public String getSuspendedAt() { + return suspendedAt; + } + public static class GsonAccount { @SerializedName("id") long id;