GitLab API

GitlabTool

Actions1095

Commits → getApiV4ProjectsIdRepositoryCommitsShaComments

AI-generated

Summary

Retrieve comments for a specific commit in a GitLab project using its commit SHA or branch/tag name.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project.
  • sha (required) — The commit SHA, or the name of a branch or tag to identify the specific commit.
  • page — Optional pagination parameter specifying the current page number to retrieve.
  • per_page — Optional pagination parameter specifying the number of comment items per page.

Output shape

a paginated list of commit comment objects associated with the specified commit SHA or branch/tag within the project.

Pagination is supported via page and per_page query parameters. The operation performs an authenticated GET request unless 'Skip Authentication' is enabled.

Links

Discussion