Skip to content

Commit 3b7abe5

Browse files
authoredNov 4, 2021
Make force_remove_source_branch nullable
When making a MR from a protected branch (eg. `devel` to `stage`) this attribute is null and parsing fails.
1 parent 7b22c8b commit 3b7abe5

File tree

1 file changed

+1
-1
lines changed
  • danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab

1 file changed

+1
-1
lines changed
 

‎danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/gitlab/GitLab.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ data class GitLabMergeRequest(
5454
@SerialName("first_deployed_to_production_at")
5555
val firstDeployedToProductionAt: Instant? = null,
5656
@SerialName("force_remove_source_branch")
57-
val forceRemoveSourceBranch: Boolean,
57+
val forceRemoveSourceBranch: Boolean?,
5858
val id: Int,
5959
val iid: Int,
6060
@SerialName("latest_build_finished_at")

0 commit comments

Comments
 (0)