Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add sort support to runner-job command #3089

Open
@glensc

Description

@glensc

Description of the problem, including code/CLI snippet

I'm trying to inspect recent jobs that are submitted to runner, but by default it gives them oldest first.

I can use --get-all and sort with jq, but runner is 4 years old, so this takes very long to query.

Also, if I could pass date filter, that can also be useful.

Expected Behavior

$ gitlab -o json runner-job list --runner-id=210 --get-all  --sort=desc

Actual Behavior

$ gitlab -o json runner-job list --runner-id=210 --get-all 

Specifications

  • python-gitlab version: 5.3.1
  • Gitlab server version (or gitlab.com): v17.7.1-ee

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions