GitLab API icon

GitLab API

Gitlab

Actions1062

Commits → postApiV4ProjectsIdRepositoryCommitsShaComments

AI-generated

Summary

Post a comment on a specific commit in a GitLab project repository by providing the project ID, commit SHA (or branch/tag name), and the comment content in the request body.

Inputs

  • Id (required) — The ID or URL-encoded path of the GitLab project where the commit exists.
  • Sha (required) — The commit SHA, or the name of a branch or tag, on which to post the comment.
  • postApiV4ProjectsIdRepositoryCommitsShaComments (required) — The request body schema containing the comment details to post on the specified commit.
  • Skip Authentication — Optional flag to skip authentication; defaults to false and uses GitlabApi credentials.
  • baseUrl — Optional base URL for the GitLab instance; defaults to https://gitlab.com.

Output shape

a single record representing the created commit comment

The output contains the details of the newly created comment on the commit. The operation requires valid authentication unless skipAuthentication is set to true.

Links

Discussion