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 dd21bcb

Browse filesBrowse files
committed
I think this is a better name
1 parent b0d1eac commit dd21bcb
Copy full SHA for dd21bcb

File tree

Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-4
lines changed

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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHMyself.java
+3-4Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import java.util.Arrays;
66
import java.util.Collections;
77
import java.util.HashSet;
8-
import java.util.Iterator;
98
import java.util.List;
109
import java.util.Map;
1110
import java.util.Set;
@@ -21,7 +20,7 @@ public class GHMyself extends GHUser {
2120
/**
2221
* Type of repositories returned during listing.
2322
*/
24-
public enum RepositoryType {
23+
public enum RepositoryListFilter {
2524
ALL, // All public and private repositories that current user has access or collaborates to
2625
OWNER, // Public and private repositories owned by current user
2726
PUBLIC, // Public repositories that current user has access or collaborates to
@@ -132,7 +131,7 @@ public PagedIterable<GHRepository> listRepositories() {
132131
* Unlike {@link #getRepositories()}, this does not wait until all the repositories are returned.
133132
*/
134133
public PagedIterable<GHRepository> listRepositories(final int pageSize) {
135-
return listRepositories(pageSize, RepositoryType.ALL);
134+
return listRepositories(pageSize, RepositoryListFilter.ALL);
136135
}
137136

138137
/**
@@ -141,7 +140,7 @@ public PagedIterable<GHRepository> listRepositories(final int pageSize) {
141140
* @param pageSize size for each page of items returned by GitHub. Maximum page size is 100.
142141
* @param repoType type of repository returned in the listing
143142
*/
144-
public PagedIterable<GHRepository> listRepositories(final int pageSize, final RepositoryType repoType) {
143+
public PagedIterable<GHRepository> listRepositories(final int pageSize, final RepositoryListFilter repoType) {
145144
return new PagedIterable<GHRepository>() {
146145
public PagedIterator<GHRepository> iterator() {
147146
return new PagedIterator<GHRepository>(root.retrieve().asIterator("/user/repos?per_page=" + pageSize +

0 commit comments

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