Skip to content

Commit 526befd

Browse files
authoredJul 17, 2022
Merge pull request #227 from pinguinjkeke/approvals_before_merge_fix
Make approvals_before_merge to be nullable
2 parents 252b5a0 + 4926915 commit 526befd

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
## Master
1414
- Update `Kotlin` to `1.7.0` and added support for Apple Silicon Chipset [@gianluz] - [#231](https://github.com/danger/kotlin/pull/231)
1515

16+
# 1.1.1
17+
- Make GitLab approvals_before_merge variable nullable [#227](https://github.com/danger/kotlin/pull/227)
18+
1619
# 1.1.0
1720

1821
- Add support of BitBucketCloud [@vchernyshov] - [#214](https://github.com/danger/kotlin/pull/214)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ data class GitLabMergeRequest(
3838
@SerialName("allow_maintainer_to_push")
3939
val allowMaintainerToPush: Boolean = false,
4040
@SerialName("approvals_before_merge")
41-
val approvalsBeforeMerge: Int = 0,
41+
val approvalsBeforeMerge: Int? = 0,
4242
val assignee: GitLabUser? = null,
4343
val author: GitLabUser,
4444
@SerialName("changes_count")

0 commit comments

Comments
 (0)