@@ -65,9 +65,9 @@ enum class GitHubPullRequestState {
65
65
data class GitHubPR (
66
66
val number : Int ,
67
67
val title : String ,
68
- val body : String? ,
68
+ val body : String? = null ,
69
69
val user : GitHubUser ,
70
- val assignee : GitHubUser ? ,
70
+ val assignee : GitHubUser ? = null ,
71
71
val assignees : List <GitHubUser >,
72
72
@SerialName(" created_at" ) val createdAt : Instant ,
73
73
@SerialName(" updated_at" ) val updatedAt : Instant ,
@@ -78,14 +78,14 @@ data class GitHubPR(
78
78
val state : GitHubPullRequestState ,
79
79
@SerialName(" draft" ) val isDraft : Boolean ,
80
80
@SerialName(" locked" ) val isLocked : Boolean ,
81
- @SerialName(" merged" ) val isMerged : Boolean? ,
82
- @SerialName(" commits" ) val commitCount : Int? ,
83
- @SerialName(" comments" ) val commentCount : Int? ,
84
- @SerialName(" review_comments" ) val reviewCommentCount : Int? ,
85
- val additions : Int? ,
86
- val deletions : Int? ,
87
- @SerialName(" changed_files" ) val changedFiles : Int? ,
88
- val milestone : GitHubMilestone ? ,
81
+ @SerialName(" merged" ) val isMerged : Boolean? = null ,
82
+ @SerialName(" commits" ) val commitCount : Int? = null ,
83
+ @SerialName(" comments" ) val commentCount : Int? = null ,
84
+ @SerialName(" review_comments" ) val reviewCommentCount : Int? = null ,
85
+ val additions : Int? = null ,
86
+ val deletions : Int? = null ,
87
+ @SerialName(" changed_files" ) val changedFiles : Int? = null ,
88
+ val milestone : GitHubMilestone ? = null ,
89
89
@SerialName(" html_url" ) val htmlURL : String
90
90
)
91
91
@@ -150,7 +150,7 @@ data class GitHubRepo(
150
150
val fullName : String ,
151
151
@SerialName(" private" )
152
152
val isPrivate : Boolean ,
153
- val description : String? ,
153
+ val description : String? = null ,
154
154
@SerialName(" fork" )
155
155
val isFork : Boolean ,
156
156
@SerialName(" html_url" )
@@ -178,10 +178,11 @@ enum class GitHubReviewState {
178
178
@Serializable
179
179
data class GitHubReview (
180
180
val user : GitHubUser ,
181
- val id : Long? ,
182
- val body : String? ,
183
- @SerialName(" commit_id" ) val commitId : String? ,
184
- val state : GitHubReviewState ?
181
+ val id : Long? = null ,
182
+ val body : String? = null ,
183
+ @SerialName(" commit_id" )
184
+ val commitId : String? = null ,
185
+ val state : GitHubReviewState ? = null
185
186
)
186
187
187
188
/* *
@@ -197,9 +198,9 @@ data class GitHubReview(
197
198
data class GitHubCommit (
198
199
val sha : String ,
199
200
val url : String ,
200
- val author : GitHubUser ? ,
201
+ val author : GitHubUser ? = null ,
201
202
val commit : GitCommit ,
202
- val committer : GitHubUser ?
203
+ val committer : GitHubUser ? = null
203
204
)
204
205
205
206
@Serializable
@@ -248,11 +249,11 @@ data class GitHubIssue(
248
249
val user : GitHubUser ,
249
250
val state : GitHubIssueState ,
250
251
@SerialName(" locked" ) val isLocked : Boolean ,
251
- val body : String? ,
252
+ val body : String? = null ,
252
253
@SerialName(" comments" ) val commentCount : Int ,
253
- val assignee : GitHubUser ? ,
254
+ val assignee : GitHubUser ? = null ,
254
255
val assignees : List <GitHubUser >,
255
- val milestone : GitHubMilestone ? ,
256
+ val milestone : GitHubMilestone ? = null ,
256
257
@SerialName(" created_at" ) val createdAt : Instant ,
257
258
@SerialName(" updated_at" ) val updatedAt : Instant ,
258
259
@SerialName(" closed_at" ) val closedAt : Instant ? = null ,
@@ -294,9 +295,9 @@ enum class GitHubUserType {
294
295
*/
295
296
@Serializable
296
297
data class GitHubUser (
297
- val id : Long? ,
298
- val login : String? ,
299
- val type : GitHubUserType ? ,
298
+ val id : Long? = null ,
299
+ val login : String? = null ,
300
+ val type : GitHubUserType ? = null ,
300
301
@SerialName(" avatar_url" )
301
302
val avatarUrl : String?
302
303
)
0 commit comments