GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the versions of a specific merge request in a GitLab project using the GitLab API. It is useful for tracking changes and updates made to a merge request over time. For example, developers can use this to review the history of modifications on a merge request before merging it.

Use Case Examples

  1. Fetch all versions of a merge request to audit changes before approval.
  2. Retrieve specific page of merge request versions for large projects with many updates.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the 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

  • id - The ID or URL-encoded path of the project.
  • merge_request_iid - The internal ID of the merge request.
  • versions - List of versions of the merge request, including details of each version.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly provided; otherwise, the API will return an error.
  • Check that the GitLab API key credential is valid and has sufficient permissions to access the project and merge request data.
  • Pagination parameters (page and per_page) should be set correctly to avoid missing data or excessive data retrieval.

Links

Discussion