Skip to content

Commit fd37a2c

Browse files
authored
Add support for repository searching by "topic"
See https://help.github.com/articles/searching-repositories/#search-by-topic
1 parent d61697a commit fd37a2c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ public GHRepositorySearchBuilder stars(String v) {
5555
return q("stars:"+v);
5656
}
5757

58+
public GHRepositorySearchBuilder topic(String v) {
59+
return q("topic:"+v);
60+
}
61+
5862
public GHRepositorySearchBuilder order(GHDirection v) {
5963
req.with("order",v);
6064
return this;

0 commit comments

Comments
 (0)