From 18069d8c9fc2af03b1dcfea187871a15574259d7 Mon Sep 17 00:00:00 2001 From: Anthony Faucogney Date: Tue, 23 Nov 2021 12:02:08 +0100 Subject: [PATCH] Fix parsing issue : https://github.com/danger/kotlin/issues/195 --- .../main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt b/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt index 4e2c8beb..149e4363 100644 --- a/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt +++ b/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt @@ -38,7 +38,7 @@ data class GitLabMergeRequest( @SerialName("allow_maintainer_to_push") val allowMaintainerToPush: Boolean = false, @SerialName("approvals_before_merge") - val approvalsBeforeMerge: Int = 0, + val approvalsBeforeMerge: Int? = null, val assignee: GitLabUser? = null, val author: GitLabUser, @SerialName("changes_count")