@@ -28,32 +28,38 @@ 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- 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"`
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 is the pull request author's relationship to the repository.
58+ // Possible values are "COLLABORATOR", "CONTRIBUTOR", "FIRST_TIMER", "FIRST_TIME_CONTRIBUTOR", "MEMBER", "OWNER", or "NONE".
59+ //
60+ // Deprecated: GitHub will remove this field from Events API payloads on October 7, 2025.
61+ // Use the Pull Requests REST API endpoint to retrieve this information.
62+ // See: https://docs.github.com/rest/pulls/pulls#get-a-pull-request
5763 AuthorAssociation * string `json:"author_association,omitempty"`
5864 NodeID * string `json:"node_id,omitempty"`
5965 RequestedReviewers []* User `json:"requested_reviewers,omitempty"`
0 commit comments