Skip to content

ListPullRequestsWithCommit doesn't seem to return open/close PRs associated with a commit #2241

Closed
@me-diru

Description

@me-diru

I recently used ListPullRequestsWithCommit to get PRs associated with commit, but it looks like only merged PRs are returned by the github api?

Few links testing the api call in commits in this repo

Working on Merged PR: #2238

Not working, Open PR: #2032

Github API docs(should update this link as well I think): https://docs.github.com/en/rest/reference/commits#list-pull-requests-associated-with-a-commit
any solution is appreciated, for now, maybe updating the docs wrt the function is a good start?

Using https://pkg.go.dev/github.com/google/go-github/v37/github

This can also be a github api issue fwiw

thanks!

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