Skip to content

Commit 6759880

Browse files
committedNov 5, 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 6759880

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
 

‎CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
-->
1313
## Master
1414

15+
- Make `force_remove_source_branch` nullable in GitLab Merge request entity [@davidbilik] - [#197](https://github.com/danger/kotlin/pull/197)
16+
1517
# 1.0.0-beta4, 1.0.0
1618

1719
- Create the Danger main instance only once [@f-meloni] - [#185](https://github.com/danger/kotlin/pull/185)

‎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)