capabilities.work

Get the commit sequence for a commit

One step with GitLab. We can help you get access.

Look something up

Get the commit sequence for a commit

with GitLab
Works with AI assistants

Use GitLab: its GitLab REST Commits API lets you get the commit sequence for a commit in a single step (GET /api/v4/projects/{id}/repository/commits/{sha}/sequence). 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.

  • How do I see the commit history leading up to a specific commit?
  • Can I follow only the first parent of merge commits when getting a commit sequence?
Say it to your AI assistant
  • Get the commit sequence for {sha} in project {id}.
  • Show the commit history to {sha} in {id}, first parent only {first_parent}.
For your developer

GET /api/v4/projects/{id}/repository/commits/{sha}/sequence in GitLab REST Commits API. Full spec on APIs.io.