GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node interacts with the GitLab API to retrieve draft notes for a specific merge request within a project. It is useful for developers and project managers who want to programmatically access comments or feedback saved as draft notes on merge requests in GitLab. For example, it can be used to automate the review process by fetching draft comments before finalizing a merge request.

Use Case Examples

  1. Fetch draft notes for a merge request to display in a custom dashboard.
  2. Automate notifications based on draft notes content for team collaboration.

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 for authentication

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 API key is missing or invalid; verify credentials are correctly configured.
  • Network or base URL issues can cause request failures; confirm the baseUrl is reachable and correct.

Links

Discussion