Skip to content
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

Add support for runner jobs status filter #475

Closed
wants to merge 1 commit into from
Closed

Add support for runner jobs status filter #475

wants to merge 1 commit into from

Conversation

jindrichskupa
Copy link

No description provided.

Copy link
Owner

@NARKOZ NARKOZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I've added a comment.

get("/runners/#{url_encode runner_id}/jobs")
def runner_jobs(runner_id, status=nil)
filter = status.nil? ? "" : "?status=#{status}"
get("/runners/#{url_encode runner_id}/jobs#{filter}")
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should pass a hash of options as a query. See the line 60 for an example.

@atiaxi atiaxi mentioned this pull request Mar 5, 2019
@NARKOZ
Copy link
Owner

NARKOZ commented Mar 6, 2019

#492

@NARKOZ NARKOZ closed this Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants