GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves draft notes for a specific merge request within a project on GitLab using the GitLab API v4. It is useful for developers and project managers who want to programmatically access comments or feedback saved as draft notes on merge requests, facilitating code review and collaboration workflows.

Use Case Examples

  1. Fetch draft notes for a merge request to display in a custom dashboard.
  2. Automate the retrieval of draft notes to analyze feedback trends on merge requests.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method used for the API request, default is GET.
Path Parameters Parameters required in the API request path to specify the project and merge request.

Output

JSON

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

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and exist in the GitLab instance.
  • Verify that the API key credential has sufficient permissions to access merge request draft notes.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion