Skip to content

fix: add authorAssociation to IssueFragment (GraphQL path)#2265

Open
lanxevo3 wants to merge 1 commit intogithub:mainfrom
lanxevo3:main
Open

fix: add authorAssociation to IssueFragment (GraphQL path)#2265
lanxevo3 wants to merge 1 commit intogithub:mainfrom
lanxevo3:main

Conversation

@lanxevo3
Copy link

Summary

Adds the missing \�uthorAssociation\ field to the \IssueFragment\ GraphQL struct and populates it in \ ragmentToMinimalIssue(), fixing the missing \�uthor_association\ field in \list_issues\ responses when using the GraphQL path.

Changes

  • \pkg/github/issues.go: Added \Author.Association\ field to \IssueFragment\ struct (GraphQL)
  • \pkg/github/minimal_types.go: Set \AuthorAssociation\ in \ ragmentToMinimalIssue()\ from \ ragment.Author.Association\

Note

The REST path (\convertToMinimalIssue()) already correctly sets \AuthorAssociation\ from \issue.GetAuthorAssociation(). The GraphQL path was missing this field.

Fixes #2250

Adds missing authorAssociation field to IssueFragment GraphQL struct
and populates it in fragmentToMinimalIssue(), fixing the missing
author_association field in list_issues responses from the GraphQL path.

The REST path already correctly sets this via convertToMinimalIssue().
Fixes github#2250.
@lanxevo3 lanxevo3 requested a review from a team as a code owner March 26, 2026 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing author_association field in list_issues and pull request responses

1 participant