Skip to content

Commit 0731f63

Browse files
committed
Added order parameter
1 parent a298960 commit 0731f63

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public GHIssueSearchBuilder isMerged() {
4141
return q("is:merged");
4242
}
4343

44+
public GHIssueSearchBuilder order(GHDirection v) {
45+
req.with("order",v);
46+
return this;
47+
}
48+
4449
public GHIssueSearchBuilder sort(Sort sort) {
4550
req.with("sort",sort);
4651
return this;

src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,11 @@ public GHRepositorySearchBuilder stars(String v) {
5757
return q("stars:"+v);
5858
}
5959

60+
public GHRepositorySearchBuilder order(GHDirection v) {
61+
req.with("order",v);
62+
return this;
63+
}
64+
6065
public GHRepositorySearchBuilder sort(Sort sort) {
6166
req.with("sort",sort);
6267
return this;

src/main/java/org/kohsuke/github/GHUserSearchBuilder.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ public GHUserSearchBuilder followers(String v) {
4949
return q("followers:"+v);
5050
}
5151

52+
public GHUserSearchBuilder order(GHDirection v) {
53+
req.with("order",v);
54+
return this;
55+
}
56+
5257
public GHUserSearchBuilder sort(Sort sort) {
5358
req.with("sort",sort);
5459
return this;

0 commit comments

Comments
 (0)