Skip to content

Commit

Permalink
Added order parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
kohsuke committed Nov 26, 2016
1 parent a298960 commit 0731f63
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public GHIssueSearchBuilder isMerged() {
return q("is:merged");
}

public GHIssueSearchBuilder order(GHDirection v) {
req.with("order",v);
return this;
}

public GHIssueSearchBuilder sort(Sort sort) {
req.with("sort",sort);
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ public GHRepositorySearchBuilder stars(String v) {
return q("stars:"+v);
}

public GHRepositorySearchBuilder order(GHDirection v) {
req.with("order",v);
return this;
}

public GHRepositorySearchBuilder sort(Sort sort) {
req.with("sort",sort);
return this;
Expand Down
5 changes: 5 additions & 0 deletions src/main/java/org/kohsuke/github/GHUserSearchBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ public GHUserSearchBuilder followers(String v) {
return q("followers:"+v);
}

public GHUserSearchBuilder order(GHDirection v) {
req.with("order",v);
return this;
}

public GHUserSearchBuilder sort(Sort sort) {
req.with("sort",sort);
return this;
Expand Down

0 comments on commit 0731f63

Please sign in to comment.