diff options
Diffstat (limited to 'modules/structs/pull.go')
-rw-r--r-- | modules/structs/pull.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/structs/pull.go b/modules/structs/pull.go index 55831e642c..f53d6adafc 100644 --- a/modules/structs/pull.go +++ b/modules/structs/pull.go @@ -25,11 +25,13 @@ type PullRequest struct { Draft bool `json:"draft"` IsLocked bool `json:"is_locked"` Comments int `json:"comments"` + // number of review comments made on the diff of a PR review (not including comments on commits or issues in a PR) - ReviewComments int `json:"review_comments"` - Additions int `json:"additions"` - Deletions int `json:"deletions"` - ChangedFiles int `json:"changed_files"` + ReviewComments int `json:"review_comments,omitempty"` + + Additions *int `json:"additions,omitempty"` + Deletions *int `json:"deletions,omitempty"` + ChangedFiles *int `json:"changed_files,omitempty"` HTMLURL string `json:"html_url"` DiffURL string `json:"diff_url"` |