Fix ListPullRequestsWithCommit option type#2822
Merged
gmlewis merged 2 commits intogoogle:masterfrom Jul 3, 2023
Merged
Conversation
Co-Authored-By: vgnshiyer <vgnshiyer@asu.edu>
Collaborator
|
Thank you, @RickleAndMortimer ! |
Collaborator
|
Fixes: #2815. |
Codecov Report
@@ Coverage Diff @@
## master #2822 +/- ##
=======================================
Coverage 98.06% 98.06%
=======================================
Files 136 136
Lines 12279 12279
=======================================
Hits 12041 12041
Misses 162 162
Partials 76 76
|
gmlewis
approved these changes
Jun 28, 2023
Collaborator
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @RickleAndMortimer !
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
Collaborator
|
Thank you, @valbeat ! |
suzuki-shunsuke
added a commit
to suzuki-shunsuke/tfcmt
that referenced
this pull request
Oct 7, 2023
suzuki-shunsuke
added a commit
to suzuki-shunsuke/tfcmt
that referenced
this pull request
Oct 7, 2023
* fix(deps): update module github.com/google/go-github/v53 to v55 * fix: address API breaking changes - google/go-github#2822 * fix: stop using deprecated API github.NewEnterpriseClient --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
evanelias
added a commit
to evanelias/go-github
that referenced
this pull request
Feb 5, 2025
The docs for ListPullRequestsWithCommit mention use of PullRequestListOptions, but this method no longer accepts PullRequestListOptions per google#2815 and google#2822. This commit updates the method doc comment to remove the outdated reference to PullRequestListOptions, and adds some clarifications based on the GitHub docs for the relevant API endpoint.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ListPullRequestsWithCommitusesPullRequestListOptionsas one of it's parameters. This is incorrect because in GitHub's documentation, the endpoint for this function,repos/%v/%v/commits/%v/pulls, does not share the same parameters as the ones defined inListPullRequestsWithCommitgo-github/github/pulls.go
Lines 119 to 141 in 96726d8
This PR simply sets the correct options, ListOptions, for the ListPullRequestWithCommit.
see #2815 for more details