Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 897fff4

Browse filesBrowse 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
Copy full SHA for 897fff4

File tree

Expand file treeCollapse file tree

3 files changed

+15
-1
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+15
-1
lines changed

‎README.md

Copy file name to clipboardExpand all lines: README.md
+4Lines 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

Copy file name to clipboardExpand all lines: pom.xml
+1-1Lines 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

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java
+10Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.