GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation retrieves the pipelines associated with a specific merge request in a GitLab project using the GitLab API v4. It is useful for developers and DevOps teams who want to monitor the CI/CD pipeline status and history for merge requests in their GitLab projects. For example, it can be used to automate checks on pipeline results before merging code changes.

Use Case Examples

  1. Fetch all pipelines for a merge request to check their status before approving the merge.
  2. Integrate pipeline data into a custom dashboard to monitor merge request CI/CD progress.

Properties

Name Meaning
Skip Authentication Option to skip authentication for the API request.
Authentication Type of authentication used for the API request, defaulting to GitLab API key.
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 path to specify the project and merge request.

Output

JSON

  • pipelines - List of pipelines associated with the specified merge request.

Dependencies

  • GitLab API key credential

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

Links

Discussion