diff --git a/CHANGELOG.md b/CHANGELOG.md index b2653231..a9f81e28 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,8 @@ --> ## Master +- Fix body parameter in github models [@tegorov] - [#175](https://github.com/danger/kotlin/pull/175) + # 1.0.0-beta2 - Update kotlinx-datetime to 0.1.1 [@f-meloni] - [@gianluz] - [#167](https://github.com/danger/kotlin/pull/167) @@ -68,3 +70,4 @@ [@anton46]: https://github.com/anton46 [@uzzu]: https://github.com/uzzu [@mariusgreve]: https://github.com/mariusgreve +[@tegorov]: https://github.com/tegorov diff --git a/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt b/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt index d6d69051..c47c9c2c 100644 --- a/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt +++ b/danger-kotlin-library/src/main/kotlin/systems/danger/kotlin/models/github/GitHub.kt @@ -65,7 +65,7 @@ enum class GitHubPullRequestState { data class GitHubPR( val number: Int, val title: String, - val body: String, + val body: String?, val user: GitHubUser, val assignee: GitHubUser?, val assignees: List, @@ -247,7 +247,7 @@ data class GitHubIssue( val user: GitHubUser, val state: GitHubIssueState, @SerialName("locked") val isLocked: Boolean, - val body: String, + val body: String?, @SerialName("comments") val commentCount: Int, val assignee: GitHubUser?, val assignees: List,