GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves the context commits of a specific merge request within a GitLab project using the GitLab API. It is useful for scenarios where you need to analyze or display the commits related to a particular merge request, such as in CI/CD pipelines, code review automation, or project management dashboards.

Use Case Examples

  1. Fetch all commits associated with a merge request to display in a custom dashboard.
  2. Use the commits data to trigger additional automation based on commit messages or authors.

Properties

Name Meaning
Skip Authentication Option to skip 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 required in the API path to specify the project and merge request.

Output

JSON

  • commits - List of commits in the merge request context.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and URL-encoded if necessary.
  • Authentication errors may occur if the GitLab API key is missing or invalid; verify credentials.
  • Network or base URL issues can cause request failures; confirm the baseUrl is correct and accessible.

Links

Discussion