Check if a user is a collaborator

For organization-owned repositories, the list of collaborators includes outside collaborators, organization members that are direct collaborators, organization members with access through team memberships, organization members with access through default organization permissions, and organization owners.

Team members will include the members of child teams.

GET /repos/:owner/:repo/collaborators/:username

Response if user is a collaborator

Status: 204 No Content

Response if user is not a collaborator

Status: 404 Not Found