GitLab API

GitlabTool

Actions905

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 repository. For example, it can be used in project management dashboards or reporting tools to show contributor activity.

Use Case Examples

  1. Get contributors for a project with ID 123, ordered by commits in ascending order.
  2. Fetch contributors for a project repository's main branch, paginated with 20 contributors per page.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the request.
Authentication The authentication method used for the request, typically an API key credential for GitLab.
baseUrl The base URL of the GitLab instance, defaulting to https://gitlab.com.
Method The HTTP method to use for the request, default is GET.
Query Parameters Optional query parameters to customize the request such as pagination, branch/tag reference, ordering, and sorting.
Path Parameters Path parameters including the project ID or URL-encoded path to identify the project.

Output

JSON

  • ``
    • name - Contributor's name.
    • email - Contributor's email address.
    • commits - Number of commits made by the contributor.

Dependencies

  • GitLab API authentication credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Check that the authentication credentials (API key) are valid and have sufficient permissions to access the project's repository data.
  • Verify that the base URL is correct if using a self-hosted GitLab instance instead of gitlab.com.
  • If pagination parameters are used, ensure they are valid integers to avoid request errors.

Links

Discussion