feat(api): add support for sort filter in runner jobs#3336
Merged
nejch merged 1 commit intopython-gitlab:mainfrom Jan 28, 2026
Merged
feat(api): add support for sort filter in runner jobs#3336nejch merged 1 commit intopython-gitlab:mainfrom
nejch merged 1 commit intopython-gitlab:mainfrom
Conversation
This commits allows users to configure the 'sort' filter as defined in [1], so that one can fetch the most recent jobs first. [1]: https://docs.gitlab.com/api/runners/#list-all-jobs-processed-by-a-runner
Contributor
Author
|
The pipeline failure seems unrelated: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3336 +/- ##
=======================================
Coverage 95.75% 95.75%
=======================================
Files 98 98
Lines 6054 6054
=======================================
Hits 5797 5797
Misses 257 257
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
malmor
added a commit
to malmor/python-gitlab
that referenced
this pull request
Jan 29, 2026
This commits adds to the work done in [1]. After reading the docs [2] again, you must define order_by when using sort, so this commits adds this as an additional filter. [1]: python-gitlab#3336 [2]: https://docs.gitlab.com/api/runners/#list-all-jobs-processed-by-a-runner Signed-off-by: malmor <[email protected]>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commits allows users to configure the 'sort' filter as defined in 1, so that one can fetch the most recent jobs first.
Changes
Added support for
sortfilter when fetching runner jobs.Documentation and testing
Please consider whether this PR needs documentation and tests. This is not required, but highly appreciated: