Skip to content

Commit 897fff4

Browse files
jennie-m-chenJennie Chen
andauthored
[CET-3337] Update the GhWorkflowRunQueryBuilder to have a query param for created time (#16)
* update the GhWorkflowRunQueryBuilder to have a query param for created time * spotless and update readme --------- Co-authored-by: Jennie Chen <jenniechen@Jennies-MacBook-Pro.local>
1 parent c2fdd89 commit 897fff4

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,7 @@
77

88

99
See https://github-api.kohsuke.org/ for more details
10+
11+
To locally publish changes to this API, update the version in `pom.xml` to a unique identifier.
12+
Then run `mvn install -Dmaven.test.skip -Dspotless.check.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true -Djacoco.skip=true -Dspotbugs.skip`.
13+
To use this dependency in `brain-backend`, update the version of `cortexapps-github-api` in `build.gradle.kts (:web)` to the same identifier.

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>org.kohsuke</groupId>
44
<artifactId>cortexapps-github-api</artifactId>
5-
<version>1.314</version>
5+
<version>1.315</version>
66
<name>GitHub API for Java</name>
77
<url>https://github-api.kohsuke.org/</url>
88
<description>GitHub API for Java</description>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,16 @@ public GHWorkflowRunQueryBuilder conclusion(Conclusion conclusion) {
110110
return this;
111111
}
112112

113+
/**
114+
* @param created
115+
* specifies a date-time range to return workflow runs within
116+
* @return the gh workflow run query builder
117+
*/
118+
public GHWorkflowRunQueryBuilder created(String created) {
119+
req.with("created", created);
120+
return this;
121+
}
122+
113123
/**
114124
* List.
115125
*

0 commit comments

Comments
 (0)