GitLab API

GitlabTool

Actions1000

Overview

This node interacts with the GitLab API to create a new commit in a project's repository. It is useful for automating repository management tasks such as committing changes programmatically. For example, it can be used in CI/CD pipelines to push code updates or in automation workflows to manage project repositories.

Use Case Examples

  1. Automate committing code changes to a GitLab project repository.
  2. Integrate repository commit actions into a larger DevOps workflow.

Properties

Name Meaning
Skip Authentication Determines whether to skip API authentication for the request.
Authentication Specifies the authentication method to use, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET but can be set to POST for creating commits.
Path Parameters Parameters to specify the project ID or URL-encoded path for the commit operation.

Output

JSON

  • id - The ID or URL-encoded path of the project where the commit is created.
  • commitDetails - Details of the commit created in the repository.

Dependencies

  • GitLab API key credential

Troubleshooting

  • Ensure the project ID is correctly specified in the path parameters to avoid 404 errors.
  • Verify that the authentication token is valid and has sufficient permissions to create commits in the repository.
  • Check the baseUrl if using a self-hosted GitLab instance to ensure the API endpoint is reachable.

Links

Discussion