GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → getApiV4ProjectsIdRepositoryContributors

AI-generated

Summary

Retrieve the list of contributors for a specific GitLab project repository, including their commit counts and other contributor details.

Inputs

  • id (required) — The ID or URL-encoded path of the project to retrieve contributors from.
  • page — The page number for paginated results (defaults to 1).
  • per_page — The number of contributors returned per page (defaults to 20).
  • ref — The repository branch or tag name to filter contributors by; if omitted, the default branch is used.
  • order_by — The criterion to order contributors by: 'name', 'email', or 'commits' (defaults to 'commits').
  • sort — Sort order direction: ascending ('asc') or descending ('desc'), defaulting to ascending.

Output shape

a list of contributor objects for the specified project repository

The output is paginated according to the 'page' and 'per_page' query parameters. Each contributor object typically contains contributor identification and contribution statistics. Errors or authentication issues will affect the returned data accordingly.

Links

Discussion