repositories
Retrieve contributors metrics
Retrieves a list of contributors to a specified repository.
get/api/v4/projects/{id}/repository/contributors
Request
- Base URLhttps://gitlab.com
- Authnone declared
Path parameters
idstring required
The ID or URL-encoded path of the project
Query parameters
pageinteger
Current page number
per_pageinteger
Number of items per page
refstring
The name of a repository branch or tag, if not given the default branch is used
order_by'email' | 'name' | 'commits'
Return contributors ordered by name or email or commits
sort'asc' | 'desc'
Sort by asc (ascending) or desc (descending)
Response
Retrieve contributors metrics
Example response
{
"name": "John Doe",
"email": "johndoe@example.com",
"commits": 117,
"additions": 3,
"deletions": 5
}Changes
No recorded changes to this operation across all 5 revisions of this API.