Add an ability to get pull requests by repo, owner and head #723
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.
Provides an ability to get a pull request from
user1/repo
touser2/repo
instead of getting pull request by number. The client of this method(such as contribution plugin) needs this improvement because the only way of getting the pull request from one repository to another is getting all the pull requests and then matching them. In that case when repository has 10+ open pull requests it takes some time to get all of the pull requests and parse those into dtos, on the other handGitService
client makes the same request to get all the pull requests returned by server. As a result we had 2 huge requests.I think here is the only one way for adding additional query parameter to the
kohsuke
github client - it's customHttpConnector
which addshead
query parameter directly to the url and delegates connect call to theDEFAULT
implementation.Here is api ref, koksuke library doesn't allow to put head param.
@skabashnyuk please review