GitLab API

GitlabTool

Actions1000

Overview

This node operation interacts with the GitLab API to retrieve the latest release information of a specified project, optionally appending a suffix path to the release permalink. It is useful for automation workflows that need to fetch the most recent release details of a project hosted on GitLab, such as deployment pipelines, release monitoring, or integration with other tools.

Use Case Examples

  1. Fetch the latest release details of a project by its ID or URL-encoded path.
  2. Retrieve a specific file or asset linked to the latest release by providing a suffix path.

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 to send the request to, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, defaulting to GET.
Query Parameters Collection of query parameters for the request, specifically the suffix_path which is appended to the latest release permalink.
Path Parameters Collection of path parameters for the request, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project.
  • suffix_path - The suffix path appended to the latest release permalink.
  • releaseData - The JSON response containing the latest release information from the GitLab API.

Dependencies

  • GitLab API key credential for authentication unless Skip Authentication is enabled.

Troubleshooting

  • Ensure the project ID or URL-encoded path is correctly specified; otherwise, the API request will fail.
  • If authentication is required, make sure the GitLab API key credential is correctly configured and has sufficient permissions.
  • Verify the baseUrl is correct for the GitLab instance being accessed.
  • Check that the suffix_path query parameter is valid and correctly formatted if used.

Links

Discussion