GitLab API icon

GitLab API

Gitlab

Actions1062

Commits → getApiV4ProjectsIdRepositoryCommitsShaSequence

AI-generated

Summary

Retrieve the sequence of commits starting from a specific commit SHA in a GitLab project repository, with an option to include only the first parent of merge commits.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project from which to retrieve commit sequences.
  • sha (required) — The commit SHA from which to start retrieving the sequence of commits.
  • first_parent — Boolean flag to include only the first parent of merge commits in the sequence; defaults to false.

Output shape

a JSON object representing the sequence of commits starting at the specified commit SHA for the indicated project

The output corresponds to GitLab's API response at /api/v4/projects/{id}/repository/commits/{sha}/sequence. Optional query parameter 'first_parent' filters the commits included. The operation uses the GET HTTP method by default.

Links

Discussion