8

Is collaborator just a contributor with "commit-bit" and other privileges or there is more to it?

1 Answer 1

11

Contributors

Git (in a git repository) identifies authors and committers by email address. Github users can associate email addresses with their accounts. When a user's set of email addresses is found in the commit history of a github repo, github marks that user as a contributor.

GH Enterprise docs seem to be consistent with contributors only being associated with email addresses.

Collaborators

A user that has defined permissions in a github repo is marked as a collaborator. These permissions can vary and do not need to be the commit bit. A random org I am a member of shows the following options presently:

  • read
  • write
  • admin
  • issue triage
  • non-admin manager

See also gh enterprise docs.

A user who has read-only access to a private repo should be marked as a collaborator, in my understanding.

A user who has permissions to a repo but no commits in that repo with any of email addresses associated with their github account would be a collaborator but not a contributor.

Members

When a github repo belongs to an organization, users that have membership in that organization are marked "Member" in the same space used for "Contributor" and "Collaborator". Organization membership does not necessarily grant any permissions in a particular repository, but the user is marked a Member regardless. For example, one org I am a member of grants me read/write access to some repos, but I am marked a member also in other repos where I have the same permissions/access as any other github user.

1
  • Thank you for this. I could not find any info on this at GitHub. Turns out these designs are flawed as I have code using the "@" symbol that GitHub connected with random user email accounts in their system, which then incorrectly assigned those people as "Contributors" to my project. That is CRAZY! None of those people are even remotely "contributors" to my repos! Why would they GitHub try and parse your code to find users this way? Terrible terrible design......
    – Stokely
    Jul 25, 2022 at 11:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.