GitLab API icon

GitLab API

Gitlab

Actions917

Overview

This node operation allows users to post context commits to a specific merge request in a GitLab project via the GitLab API. It is useful for scenarios where you want to add or update commit context information related to a merge request, such as during automated CI/CD workflows or when managing merge requests programmatically.

Use Case Examples

  1. Automatically post commit context to a merge request after a successful build.
  2. Update merge request commit context as part of a deployment pipeline.

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.
Path Parameters Parameters for the API path including project ID and merge request IID.

Output

JSON

  • response - The JSON response from the GitLab API after posting context commits to the merge request.

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 API key has sufficient permissions to post context commits to the merge request.
  • Check the base URL to ensure it points to the correct GitLab instance.
  • Common errors include authentication failures, invalid project or merge request IDs, and insufficient permissions.

Links

Discussion