]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19084 Fail fast when an organisation is suspended on GitHub
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>
Fri, 26 May 2023 09:58:42 +0000 (11:58 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 1 Jun 2023 20:02:58 +0000 (20:02 +0000)
server/sonar-alm-client/src/main/java/org/sonar/alm/client/github/GithubBinding.java

index bb569f0db86f07f0070e014f794ab47ca0b6258e..a7c53ee975a35960228999ba378fd67048b824a9 100644 (file)
@@ -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;