this doesn't work as intended.

This commit is contained in:
Kohsuke Kawaguchi
2011-06-16 21:36:55 -07:00
parent 559cc37055
commit 795c642f49

View File

@@ -265,12 +265,13 @@ public class GHRepository {
return root.retrieveWithAuth("/pulls/"+owner+'/'+name+"/"+state.name().toLowerCase(Locale.ENGLISH),JsonPullRequests.class).wrap(root);
}
/**
* Retrieves all the pull requests.
*/
public List<GHPullRequest> getPullRequests() throws IOException {
return root.retrieveWithAuth("/pulls/"+owner+'/'+name,JsonPullRequests.class).wrap(root);
}
// this is no different from getPullRequests(OPEN)
// /**
// * Retrieves all the pull requests.
// */
// public List<GHPullRequest> getPullRequests() throws IOException {
// return root.retrieveWithAuth("/pulls/"+owner+'/'+name,JsonPullRequests.class).wrap(root);
// }
private void verifyMine() throws IOException {
if (!root.login.equals(owner))