mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
changed return value of GHRepository.getPullRequest()
I'm not sure whether this influence something or not, but I think it should be OK.
This commit is contained in:
@@ -117,6 +117,6 @@ public class GHPullRequest extends GHIssue {
|
||||
}
|
||||
|
||||
public GHDetailedPullRequest getDetailedPullRequest() throws IOException{
|
||||
return (GHDetailedPullRequest) owner.getPullRequest(this.getNumber());
|
||||
return owner.getPullRequest(this.getNumber());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -352,7 +352,7 @@ public class GHRepository {
|
||||
/**
|
||||
* Retrieves a specified pull request.
|
||||
*/
|
||||
public GHPullRequest getPullRequest(int i) throws IOException {
|
||||
public GHDetailedPullRequest getPullRequest(int i) throws IOException {
|
||||
return root.retrieveWithAuth("/repos/" + owner.login + '/' + name + "/pulls/" + i, GHDetailedPullRequest.class).wrapUp(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user