Skip to content

Commit

Permalink
Allows fetching pull requests by knowing repo-name and owner.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucamilanesio committed Sep 27, 2013
1 parent 2fb3f31 commit 096c965
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/main/java/org/kohsuke/github/GHRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,17 @@ protected void wrapUp(GHPullRequest[] page) {
};
}

/**
* Retrieves all the pull requests of a particular state by knowing organisation and repository
*/
public static PagedIterable<GHPullRequest> listPullRequests(final GitHub root, final GHPerson owner, final String repositoryName, final GHIssueState state) {
GHRepository repo = new GHRepository();
repo.root = root;
repo.name = repositoryName;
repo.owner = owner;
return repo.listPullRequests(state);
}

/**
* Retrieves the currently configured hooks.
*/
Expand Down

0 comments on commit 096c965

Please sign in to comment.