GitLab API icon

GitLab API

Gitlab

Actions917

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 need to analyze or display contributor information such as commit counts, names, or emails for a project repository. For example, it can be used in project management dashboards or reporting tools to show contributor activity.

Use Case Examples

  1. Fetch contributors of a project by project ID to display in a team dashboard.
  2. Retrieve contributors ordered by commit count to identify top contributors in a repository.

Properties

Name Meaning
Skip Authentication Whether to skip authentication for the API request.
Authentication The authentication method used for the API request, defaulting to GitLab API key authentication.
baseUrl The base URL of the GitLab instance to which the API request is sent, defaulting to https://gitlab.com.
Method The HTTP method used for the API request, defaulting to GET.
Parameter Schema Defines the parameters for the API request including project ID, pagination, branch/tag reference, and sorting options.
Query Parameters Optional query parameters to customize the API request such as page number, items per page, branch/tag reference, order by field, and sort direction.
Path Parameters Path parameters including the project ID or URL-encoded path required to identify the project.

Output

JSON

  • ``
    • name - Contributor's name
    • email - Contributor's email address
    • 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 key credential

Troubleshooting

  • Ensure the project ID provided in the path parameters is correct and accessible with the provided authentication.
  • Check that the base URL is correct if using a self-hosted GitLab instance.
  • Verify that the authentication credentials are valid and have sufficient permissions to access the project repository.
  • If pagination parameters are used, ensure they are within valid ranges to avoid empty or incomplete results.

Links

Discussion