Skip to content

Commit b39f994

Browse files
authored
Merge pull request #235 from vchernyshov/master
Make user nullable
2 parents 31aeee0 + 7cbb939 commit b39f994

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
-->
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)
15+
- Make user property nullable for cases when non BB user did a commit [@vchernyshov]
1516

1617
# 1.1.1
1718
- Make GitLab approvals_before_merge variable nullable [#227](https://github.com/danger/kotlin/pull/227)

danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/bitbucket/BitBucketCloud.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ data class BitBucketCloud(
3232
@SerialName("updated_on")
3333
val updatedOn: Instant,
3434
val deleted: Boolean,
35-
val user: User,
35+
val user: User? = null,
3636
)
3737

3838
@Serializable
@@ -63,7 +63,7 @@ data class BitBucketCloud(
6363
@Serializable
6464
data class Author(
6565
val raw: String,
66-
val user: User
66+
val user: User? = null
6767
)
6868
}
6969

@@ -99,7 +99,7 @@ data class BitBucketCloud(
9999
data class Participant(
100100
val approved: Boolean,
101101
val role: Role,
102-
val user: User
102+
val user: User? = null
103103
) {
104104

105105
@Serializable

0 commit comments

Comments
 (0)