GitLab API

GitlabTool

Actions1000

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 need to programmatically add commit context information to a merge request, such as during automated CI/CD workflows or integration with other development tools.

Use Case Examples

  1. Automatically add commit context to a merge request after a successful build.
  2. Integrate commit metadata into merge requests for enhanced code review processes.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET but can be set to POST, PUT, DELETE, HEAD, or PATCH.
Path Parameters Parameters required in the request path, including the project ID or URL-encoded path and the merge request IID.

Output

JSON

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

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID and merge request IID are correctly specified and URL-encoded if necessary.
  • Verify that the authentication token has sufficient permissions to post to the merge request context commits endpoint.
  • Check the base URL to ensure it points to the correct GitLab instance, especially if using a self-hosted GitLab server.

Links

Discussion