API endpoint for latest jobs
I would love to have a listing of the latest jobs or the latest pipeline/jobs for the API endpoints. At the moment I have to fetch the latest pipeline id and then fetch related jobs.
/api/v4/projects/{PROJECT-ID}/jobs > /api/v4/projects/{PROJECT-ID}/jobs/latest
/api/v4/projects/{PROJECT-ID}/pipelines/{PIPELINE-ID}/jobs > /api/v4/projects/{PROJECT-ID}/pipelines/latest/jobs
BTW: I wonder why GitLab is listing all jobs? Most CI services out there just show the lastest / current jobs by default.
Solving this with code is kind of ugly: https://github.com/redaxmedia/chroma-feedback/blob/master/src/provider/gitlab.py
Edited by Henry Ruhs