Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 096c965

Browse filesBrowse files
committed
Allows fetching pull requests by knowing repo-name and owner.
1 parent 2fb3f31 commit 096c965
Copy full SHA for 096c965

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed

‎src/main/java/org/kohsuke/github/GHRepository.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHRepository.java
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,17 @@ protected void wrapUp(GHPullRequest[] page) {
378378
};
379379
}
380380

381+
/**
382+
* Retrieves all the pull requests of a particular state by knowing organisation and repository
383+
*/
384+
public static PagedIterable<GHPullRequest> listPullRequests(final GitHub root, final GHPerson owner, final String repositoryName, final GHIssueState state) {
385+
GHRepository repo = new GHRepository();
386+
repo.root = root;
387+
repo.name = repositoryName;
388+
repo.owner = owner;
389+
return repo.listPullRequests(state);
390+
}
391+
381392
/**
382393
* Retrieves the currently configured hooks.
383394
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.