GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the versions of a specific merge request in a GitLab project using the GitLab API v4. It is useful for tracking changes and updates made to a merge request over time, which can help in code review and project management scenarios. For example, a developer or project manager can use this node to fetch all versions of a merge request to see the history of changes before merging.

Use Case Examples

  1. Fetch all versions of a merge request to review changes before merging.
  2. Track the history of updates on a merge request for audit purposes.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used, default is 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.
Query Parameters Optional query parameters for pagination.
Path Parameters Required path parameters to identify the project and merge request.

Output

JSON

  • versions - Array of merge request versions retrieved from the API.

Dependencies

  • GitLab API key credential for authentication

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API key credential is valid and has sufficient permissions to access the project and merge request.
  • Check the base URL if using a self-hosted GitLab instance to ensure it is correct.
  • Common error messages include 404 Not Found if the project or merge request does not exist, and 401 Unauthorized if authentication fails.

Links

Discussion