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

[CET-3337] Update the GhWorkflowRunQueryBuilder to have a query param for created time #16

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 4 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@


See https://github-api.kohsuke.org/ for more details

To locally publish changes to this API, update the version in `pom.xml` to a unique identifier.
Then run `mvn install -Dmaven.test.skip -Dspotless.check.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true -Djacoco.skip=true -Dspotbugs.skip`.
To use this dependency in `brain-backend`, update the version of `cortexapps-github-api` in `build.gradle.kts (:web)` to the same identifier.
2 changes: 1 addition & 1 deletion 2 pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>org.kohsuke</groupId>
<artifactId>cortexapps-github-api</artifactId>
<version>1.314</version>
<version>1.315</version>
<name>GitHub API for Java</name>
<url>https://github-api.kohsuke.org/</url>
<description>GitHub API for Java</description>
Expand Down
10 changes: 10 additions & 0 deletions 10 src/main/java/org/kohsuke/github/GHWorkflowRunQueryBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,16 @@ public GHWorkflowRunQueryBuilder conclusion(Conclusion conclusion) {
return this;
}

/**
* @param created
* specifies a date-time range to return workflow runs within
* @return the gh workflow run query builder
*/
public GHWorkflowRunQueryBuilder created(String created) {
req.with("created", created);
return this;
}

/**
* List.
*
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.