Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
me-diru opened this issue Dec 24, 2021 · 1 comment

Comments

@me-diru
Copy link

me-diru commented Dec 24, 2021

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!

@me-diru
Copy link
Author

me-diru commented Dec 24, 2021

this only works with open PRs from the origin repo wrt the commit

@me-diru me-diru closed this as completed Dec 24, 2021
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

No branches or pull requests

1 participant