GitLab API

GitlabTool

Actions905

Overview

This node operation fetches public snippets from the GitLab API (v4). It allows users to retrieve snippets that are publicly available on GitLab, optionally filtered by creation date and paginated. This is useful for scenarios where you want to access or display public code snippets shared on GitLab without requiring authentication.

Use Case Examples

  1. Retrieve all public snippets created after a specific date to monitor recent public code contributions.
  2. Fetch a paginated list of public snippets to display in an application or dashboard.

Properties

Name Meaning
Skip Authentication If set to true, the node will skip authentication when making the API request.
Authentication The authentication method used for the API request, hidden if Skip Authentication is true.
baseUrl The base URL of the GitLab instance to which the API requests are sent.
Method The HTTP method used for the API request (GET, POST, PUT, DELETE, HEAD, PATCH).
Query Parameters Optional query parameters to filter and paginate the public snippets.

Output

JSON

  • id - Unique identifier of the snippet.
  • title - Title of the snippet.
  • file_name - Name of the file in the snippet.
  • description - Description of the snippet.
  • author
    • id - ID of the author who created the snippet.
    • name - Name of the author.
  • created_at - Timestamp when the snippet was created.
  • updated_at - Timestamp when the snippet was last updated.
  • web_url - URL to view the snippet on GitLab.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the baseUrl is correct and accessible; incorrect URLs will cause request failures.
  • If authentication is required and Skip Authentication is false, ensure valid GitLab API credentials are provided.
  • Check query parameter formats, especially date-time strings, to avoid API errors.

Links

Discussion