GitLab API

GitlabTool

Actions1000

Overview

This node operation retrieves the list of contributors for a specific project's repository in GitLab using the GitLab API v4. It is useful for scenarios where you want to analyze or display contributor information such as commit counts, names, or emails for a given project. For example, it can be used in project management dashboards or reporting tools to show contributor activity.

Use Case Examples

  1. Fetching contributors of a project to display in a team dashboard.
  2. Generating reports on contributor commit statistics for a project.

Properties

Name Meaning
Skip Authentication Option to skip authentication when making the API request.
Authentication The authentication method used for the API request, hidden unless Skip Authentication is false.
baseUrl The base URL of the GitLab instance to connect to, defaulting to https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the parameters accepted by the API endpoint, including project ID, pagination, branch/tag reference, and sorting options.
Query Parameters Collection of optional query parameters such as page number, items per page, branch/tag reference, order by field, and sort direction.
Path Parameters Collection containing the project ID or URL-encoded path identifying the project.

Output

JSON

  • contributors
    • ``
      * name - Name of the contributor
      * email - Email of the contributor
      * commits - Number of commits made by the contributor
      * additions - Number of additions made by the contributor
      * deletions - Number of deletions made by the contributor

Dependencies

  • GitLab API authentication token or credentials

Troubleshooting

  • Ensure the project ID or URL-encoded path is correct and accessible with the provided credentials.
  • Verify that the base URL is correct for the GitLab instance being accessed.
  • Check that the authentication token has sufficient permissions to access project repository data.
  • Common errors include 404 Not Found if the project does not exist or is private without access, and 401 Unauthorized if authentication fails.

Links

Discussion