GitLab API icon

GitLab API

Gitlab

Actions880

Overview

This node operation retrieves the list of contributors for a specific project's repository in GitLab using the GitLab API. 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 who contributed to a project and their contribution details.

Use Case Examples

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

Properties

Name Meaning
Skip Authentication Option to skip authentication for the request, useful for public projects or testing.
Authentication Type of authentication used for the request, default is GitLab API token.
baseUrl Base URL of the GitLab instance, default is https://gitlab.com.
Method HTTP method to use for the request, default is GET.
Parameter Schema Defines the parameters for the API call 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 of path parameters, specifically the project ID or URL-encoded path.

Output

JSON

  • id - The ID or URL-encoded path of the project used in the request path.
  • page - Current page number for pagination.
  • per_page - Number of items per page for pagination.
  • ref - The name of a repository branch or tag to filter contributors.
  • order_by - Field by which contributors are ordered (name, email, or commits).
  • sort - Sort direction (ascending or descending).
  • contributors - List of contributors returned by the API, including details such as name, email, and commit count.

Dependencies

  • GitLab API token credential

Troubleshooting

  • Ensure the project ID is correctly provided and URL-encoded if necessary.
  • Verify that the GitLab API token has sufficient permissions to access the project repository data.
  • Check the base URL if using a self-hosted GitLab instance instead of gitlab.com.
  • Pagination parameters (page, per_page) should be valid integers to avoid API errors.

Links

Discussion