GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to retrieve draft notes for a specific merge request within a project. It is useful for scenarios where users need to programmatically access comments or feedback saved as drafts on merge requests in GitLab projects. For example, it can be used in automation workflows to gather draft notes for review or reporting purposes.

Use Case Examples

  1. Retrieve draft notes for a merge request to analyze pending feedback before merging.
  2. Automate the collection of draft comments for project documentation or audit.

Properties

Name Meaning
Skip Authentication Option to bypass authentication for the request.
Authentication Type of authentication used, defaulting to GitLab API key.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Path Parameters Parameters to specify the project ID and merge request IID for the API call.

Output

JSON

  • draft_notes - Array of draft notes associated with the specified merge request in the project.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified; incorrect values will result in API errors.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials are properly configured.
  • Network or base URL issues can cause request failures; confirm the base URL is correct and accessible.

Links

Discussion