GitLab API

GitlabTool

Actions905

Overview

This node operation posts a comment on a specific commit in a GitLab project repository. It is useful for adding notes, feedback, or discussions directly tied to a particular commit identified by its SHA, branch name, or tag. Practical applications include code review comments, collaboration on changes, or documenting commit details within a GitLab project.

Use Case Examples

  1. A developer wants to add a comment on a commit to explain a change or request a review.
  2. A team member posts feedback on a specific commit during a code review process.

Properties

Name Meaning
Skip Authentication Determines whether to skip authentication for the API request.
Authentication Specifies the authentication method to use, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is POST for this operation.
Path Parameters Parameters required in the URL path to identify the project and commit.

Output

JSON

  • comment
    • id - The unique identifier of the posted comment.
    • note - The content of the comment posted on the commit.
    • author - Information about the user who posted the comment.
    • created_at - Timestamp when the comment was created.

Dependencies

  • Requires GitLab API access with appropriate credentials (API key or token).

Troubleshooting

  • Ensure the project ID and commit SHA/branch/tag are correct and accessible.
  • Authentication errors may occur if the API key is missing or invalid; verify credentials.
  • Permission errors can happen if the user does not have rights to comment on the repository commits.

Links

Discussion