Get the latest pipeline on a branch
One step with GitLab. We can help you get access.
Look something up
Get the latest pipeline on a branch
with GitLab
Works with AI assistants
Use GitLab: its GitLab REST Pipelines API lets you get the latest pipeline on a branch in a single step (GET /api/v4/projects/{id}/pipelines/latest). GitLab also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.
- What was the last pipeline that ran on my branch?
- Can I get the latest pipeline for a specific ref?
Say it to your AI assistant
- Get the latest pipeline for project {id}.
- Show the last pipeline on {ref} in {id}.
For your developer
GET /api/v4/projects/{id}/pipelines/latest in GitLab REST Pipelines API. Full spec on APIs.io.