From fbd4075a9c1f72360ca6031bb36426ad37940bad Mon Sep 17 00:00:00 2001 From: Antoine Vigneau Date: Fri, 26 May 2023 11:58:42 +0200 Subject: [PATCH] SONAR-19084 Fail fast when an organisation is suspended on GitHub --- .../java/org/sonar/alm/client/github/GithubBinding.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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; -- 2.39.5