@@ -28,49 +28,51 @@ type PullRequestAutoMerge struct {
2828
2929// PullRequest represents a GitHub pull request on a repository.
3030type PullRequest struct {
31- ID * int64 `json:"id,omitempty"`
32- Number * int `json:"number,omitempty"`
33- State * string `json:"state,omitempty"`
34- Locked * bool `json:"locked,omitempty"`
35- Title * string `json:"title,omitempty"`
36- Body * string `json:"body,omitempty"`
37- CreatedAt * Timestamp `json:"created_at,omitempty"`
38- UpdatedAt * Timestamp `json:"updated_at,omitempty"`
39- ClosedAt * Timestamp `json:"closed_at,omitempty"`
40- MergedAt * Timestamp `json:"merged_at,omitempty"`
41- Labels []* Label `json:"labels,omitempty"`
42- User * User `json:"user,omitempty"`
43- Draft * bool `json:"draft,omitempty"`
44- Merged * bool `json:"merged,omitempty"`
45- Mergeable * bool `json:"mergeable,omitempty"`
46- MergeableState * string `json:"mergeable_state,omitempty"`
47- MergedBy * User `json:"merged_by,omitempty"`
48- MergeCommitSHA * string `json:"merge_commit_sha,omitempty"`
49- Rebaseable * bool `json:"rebaseable,omitempty"`
50- Comments * int `json:"comments,omitempty"`
51- Commits * int `json:"commits,omitempty"`
52- Additions * int `json:"additions,omitempty"`
53- Deletions * int `json:"deletions,omitempty"`
54- ChangedFiles * int `json:"changed_files,omitempty"`
55- URL * string `json:"url,omitempty"`
56- HTMLURL * string `json:"html_url,omitempty"`
57- IssueURL * string `json:"issue_url,omitempty"`
58- StatusesURL * string `json:"statuses_url,omitempty"`
59- DiffURL * string `json:"diff_url,omitempty"`
60- PatchURL * string `json:"patch_url,omitempty"`
61- CommitsURL * string `json:"commits_url,omitempty"`
62- CommentsURL * string `json:"comments_url,omitempty"`
63- ReviewCommentsURL * string `json:"review_comments_url,omitempty"`
64- ReviewCommentURL * string `json:"review_comment_url,omitempty"`
65- ReviewComments * int `json:"review_comments,omitempty"`
66- Assignee * User `json:"assignee,omitempty"`
67- Assignees []* User `json:"assignees,omitempty"`
68- Milestone * Milestone `json:"milestone,omitempty"`
69- MaintainerCanModify * bool `json:"maintainer_can_modify,omitempty"`
70- AuthorAssociation * string `json:"author_association,omitempty"`
71- NodeID * string `json:"node_id,omitempty"`
72- RequestedReviewers []* User `json:"requested_reviewers,omitempty"`
73- AutoMerge * PullRequestAutoMerge `json:"auto_merge,omitempty"`
31+ ID * int64 `json:"id,omitempty"`
32+ Number * int `json:"number,omitempty"`
33+ State * string `json:"state,omitempty"`
34+ Locked * bool `json:"locked,omitempty"`
35+ Title * string `json:"title,omitempty"`
36+ Body * string `json:"body,omitempty"`
37+ CreatedAt * Timestamp `json:"created_at,omitempty"`
38+ UpdatedAt * Timestamp `json:"updated_at,omitempty"`
39+ ClosedAt * Timestamp `json:"closed_at,omitempty"`
40+ MergedAt * Timestamp `json:"merged_at,omitempty"`
41+ Labels []* Label `json:"labels,omitempty"`
42+ User * User `json:"user,omitempty"`
43+ Draft * bool `json:"draft,omitempty"`
44+ URL * string `json:"url,omitempty"`
45+ HTMLURL * string `json:"html_url,omitempty"`
46+ IssueURL * string `json:"issue_url,omitempty"`
47+ StatusesURL * string `json:"statuses_url,omitempty"`
48+ DiffURL * string `json:"diff_url,omitempty"`
49+ PatchURL * string `json:"patch_url,omitempty"`
50+ CommitsURL * string `json:"commits_url,omitempty"`
51+ CommentsURL * string `json:"comments_url,omitempty"`
52+ ReviewCommentsURL * string `json:"review_comments_url,omitempty"`
53+ ReviewCommentURL * string `json:"review_comment_url,omitempty"`
54+ Assignee * User `json:"assignee,omitempty"`
55+ Assignees []* User `json:"assignees,omitempty"`
56+ Milestone * Milestone `json:"milestone,omitempty"`
57+ AuthorAssociation * string `json:"author_association,omitempty"`
58+ NodeID * string `json:"node_id,omitempty"`
59+ RequestedReviewers []* User `json:"requested_reviewers,omitempty"`
60+ AutoMerge * PullRequestAutoMerge `json:"auto_merge,omitempty"`
61+
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"`
7476
7577 // RequestedTeams is populated as part of the PullRequestEvent.
7678 // See, https://docs.github.com/developers/webhooks-and-events/github-event-types#pullrequestevent for an example.
0 commit comments