From 479cd77eebde00b589c860f069a783d4b7b75433 Mon Sep 17 00:00:00 2001 From: Will-hxw <1176843521@qq.com> Date: Thu, 23 Apr 2026 09:32:24 +0800 Subject: [PATCH] fix(pull_requests): add author_association to MinimalPullRequest Fixes Issue #2250 - REST path for pull_requests was missing AuthorAssociation field. The GraphQL path was fixed in PR #2265 but the REST path via convertToMinimalPullRequest() was not updated. Co-Authored-By: Claude Opus 4.7 --- pkg/github/minimal_types.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/github/minimal_types.go b/pkg/github/minimal_types.go index a8757c51c3..6c7bb721af 100644 --- a/pkg/github/minimal_types.go +++ b/pkg/github/minimal_types.go @@ -262,6 +262,7 @@ type MinimalPullRequest struct { ClosedAt string `json:"closed_at,omitempty"` MergedAt string `json:"merged_at,omitempty"` Milestone string `json:"milestone,omitempty"` + AuthorAssociation string `json:"author_association,omitempty"` } // MinimalPRBranch is the trimmed output type for pull request branch references. @@ -508,7 +509,8 @@ func convertToMinimalPullRequest(pr *github.PullRequest) MinimalPullRequest { Deletions: pr.GetDeletions(), ChangedFiles: pr.GetChangedFiles(), Commits: pr.GetCommits(), - Comments: pr.GetComments(), + Comments: pr.GetComments(), + AuthorAssociation: pr.GetAuthorAssociation(), } if pr.CreatedAt != nil {