Skip to content

Commit ca738b7

Browse files
committed
pr feedback
1 parent 1a62b53 commit ca738b7

File tree

1 file changed

+14
-26
lines changed

1 file changed

+14
-26
lines changed

github/pulls.go

+14-26
Original file line numberDiff line numberDiff line change
@@ -59,32 +59,20 @@ type PullRequest struct {
5959
RequestedReviewers []*User `json:"requested_reviewers,omitempty"`
6060
AutoMerge *PullRequestAutoMerge `json:"auto_merge,omitempty"`
6161

62-
// Merged is not populated by List operation.
63-
Merged *bool `json:"merged,omitempty"`
64-
// Mergeable is not populated by List operation.
65-
Mergeable *bool `json:"mergeable,omitempty"`
66-
// MergeableState is not populated by List operation.
67-
MergeableState *string `json:"mergeable_state,omitempty"`
68-
// Rebaseable is not populated by List operation.
69-
Rebaseable *bool `json:"rebaseable,omitempty"`
70-
// MergedBy is not populated by List operation.
71-
MergedBy *User `json:"merged_by,omitempty"`
72-
// MergeCommitSHA is not populated by List operation.
73-
MergeCommitSHA *string `json:"merge_commit_sha,omitempty"`
74-
// Comments is not populated by List operation.
75-
Comments *int `json:"comments,omitempty"`
76-
// Commits is not populated by List operation.
77-
Commits *int `json:"commits,omitempty"`
78-
// Additions are not populated by List operation.
79-
Additions *int `json:"additions,omitempty"`
80-
// Deletions are not populated by List operation.
81-
Deletions *int `json:"deletions,omitempty"`
82-
// ChangedFiles is not populated by List operation.
83-
ChangedFiles *int `json:"changed_files,omitempty"`
84-
// MaintainerCanModify is not populated by List operation.
85-
MaintainerCanModify *bool `json:"maintainer_can_modify,omitempty"`
86-
// ReviewComments is not populated by List operation.
87-
ReviewComments *int `json:"review_comments,omitempty"`
62+
// These fields are not populated by the List operation.
63+
Merged *bool `json:"merged,omitempty"`
64+
Mergeable *bool `json:"mergeable,omitempty"`
65+
MergeableState *string `json:"mergeable_state,omitempty"`
66+
Rebaseable *bool `json:"rebaseable,omitempty"`
67+
MergedBy *User `json:"merged_by,omitempty"`
68+
MergeCommitSHA *string `json:"merge_commit_sha,omitempty"`
69+
Comments *int `json:"comments,omitempty"`
70+
Commits *int `json:"commits,omitempty"`
71+
Additions *int `json:"additions,omitempty"`
72+
Deletions *int `json:"deletions,omitempty"`
73+
ChangedFiles *int `json:"changed_files,omitempty"`
74+
MaintainerCanModify *bool `json:"maintainer_can_modify,omitempty"`
75+
ReviewComments *int `json:"review_comments,omitempty"`
8876

8977
// RequestedTeams is populated as part of the PullRequestEvent.
9078
// See, https://docs.github.com/developers/webhooks-and-events/github-event-types#pullrequestevent for an example.

0 commit comments

Comments
 (0)