File tree Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Expand file tree Collapse file tree 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -33,15 +33,17 @@ const (
33
33
34
34
// PullReview represents a pull request review
35
35
type PullReview struct {
36
- ID int64 `json:"id"`
37
- Reviewer * User `json:"user"`
38
- State ReviewStateType `json:"state"`
39
- Body string `json:"body"`
40
- CommitID string `json:"commit_id"`
41
- Stale bool `json:"stale"`
42
- Official bool `json:"official"`
43
- CodeCommentsCount int `json:"comments_count"`
44
- Submitted time.Time `json:"submitted_at"`
36
+ ID int64 `json:"id"`
37
+ Reviewer * User `json:"user"`
38
+ State ReviewStateType `json:"state"`
39
+ Body string `json:"body"`
40
+ CommitID string `json:"commit_id"`
41
+ // Stale indicates if the pull has changed since the review
42
+ Stale bool `json:"stale"`
43
+ // Official indicates if the review counts towards the required approval limit, if PR base is a protected branch
44
+ Official bool `json:"official"`
45
+ CodeCommentsCount int `json:"comments_count"`
46
+ Submitted time.Time `json:"submitted_at"`
45
47
46
48
HTMLURL string `json:"html_url"`
47
49
HTMLPullURL string `json:"pull_request_url"`
You can’t perform that action at this time.
0 commit comments