From 0731f63237cc7c09c708db3b83089fa561e361a6 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Sat, 26 Nov 2016 14:45:03 -0800 Subject: [PATCH] Added order parameter --- src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java | 5 +++++ .../java/org/kohsuke/github/GHRepositorySearchBuilder.java | 5 +++++ src/main/java/org/kohsuke/github/GHUserSearchBuilder.java | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java index ff574025c0..f9634a59f1 100644 --- a/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHIssueSearchBuilder.java @@ -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; diff --git a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java index 8d30aaaf6b..03b12f5133 100644 --- a/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHRepositorySearchBuilder.java @@ -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; diff --git a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java index fa5161683f..ca40f4d050 100644 --- a/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java +++ b/src/main/java/org/kohsuke/github/GHUserSearchBuilder.java @@ -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;