Skip to content

Bug: Issues.ListByRepo Repository field is always nil #3159

@erezrokah

Description

@erezrokah

func (s *IssuesService) ListByRepo(ctx context.Context, owner string, repo string, opts *IssueListByRepoOptions) ([]*Issue, *Response, error) {
returns an Issue struct with a Repository field but it's always nil.

Looks like that's expected based on GitHub docs https://docs.github.com/rest/issues/issues#list-repository-issues

Doing gh api repos/google/go-github/issues doesn't return repository as well

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions