GitLab API

GitlabTool

Actions905

Overview

This node operation retrieves triggers for a specific project from the GitLab API (v4). It is useful for automating workflows that need to access or manage project triggers, such as CI/CD pipeline triggers, within GitLab projects. For example, it can be used to list all triggers associated with a project to monitor or modify them programmatically.

Use Case Examples

  1. Retrieve all triggers for a project with ID 18 to monitor CI/CD pipeline triggers.
  2. Fetch triggers with pagination to handle large sets of triggers in a project.

Properties

Name Meaning
Skip Authentication If true, the node skips authentication for the request.
Authentication The authentication method used for the GitLab API, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the parameters for the API call, including project ID (path), page number, and items per page (query).
Request Body Schema Schema for the request body, null for this GET operation.
Request Path The API endpoint path with a placeholder for the project ID.
Query Parameters Optional query parameters for pagination: page number and items per page.
Path Parameters Path parameter specifying the project ID or URL-encoded path.

Output

JSON

  • triggers - List of triggers associated with the specified project.

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID is correct and accessible with the provided credentials.
  • Check that the base URL is correct for the GitLab instance being accessed.
  • Verify that the authentication token has sufficient permissions to read project triggers.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion