75

Is there a way to know which people have merge privileges on a public GitHub repository. If the owner is a user and not an organization, then at least I know one maintainer, but it's possible that there are other users with merge rights. Also, if the owner is an organization it is possible, that not all members of the organization have merge rights. So is there a way to find the exact maintainers?

2
  • You might try checking out if there's something available in the GitHub API, I'm not sure though.
    – user456814
    May 13, 2014 at 3:29
  • Could assume the "assignees" contains all the maintainers and owners?
    – j7skov
    Mar 18 at 21:10

4 Answers 4

39

Team privileges are not public in general. Even an organization-membership is not public since the publicity must be chosen by the given member, as the Documentation states:

By default, your organization membership visibility is set to private. You can choose to publicize individual organization memberships on your profile.

This partly applies for their implementation of CODEOWNERS, too. If it is up to date the given source file is annotated with a link to its responsible GitHub user.


However there's normally no need to know the individual maintainers of a repository (since every interaction with repos you're able to access is covered by the GitHub UI, which also assures that somebody takes care about your request). If your attention is about a public repository you might search the commits for accepted pull-request. But in that case you would preferably fork the repo and just generate pull-requests on your own.

You are even not able to contact an organization via GitHub - try to find their official website, contact them and ask for their maintainers if you need that information.

2
  • 3
    I guess the use case that OP may be asking about is "Is this repo maintained by a single maintainer who has since abandoned the project or are there multiple maintainers?" Jun 7, 2022 at 15:46
  • I really hope the OP flagged this answer 8 years ago as answer because it answered his question. But your question is definitely a interesting one. Jun 8, 2022 at 9:44
17

GitHub (since July 2017) now officially supports "code owners" for projects. Code owners are individuals or teams that are responsible for code in a repository.

Project maintainers can add a CODEOWNERS file to their repository to make it easier for others to identify code owners and have code owners be notified to review Issues and Pull Requests.

See the announcement post and help article for more info.

1

Just go to the team members tab within your repo, on the right it will describe what type of member they are. Ex: member or owner.

picture of the contributors section on the karma-coverage project

6
  • 2
    Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Sep 18, 2022 at 16:29
  • 1
    I can't find the team members tab, could you attach a screenshot to your answer or specify where exactly is located? Apr 27 at 8:19
  • This is a good answer, and got me sleuthing enough to find what I need, I think. This and looking at commits to see who committed or old PRs to see who merged and you'll get pretty close to knowing who does what -- and who might be a member of a managing group. @MarcoLackovic Added a picture. Does that help? It is from the front page of a project. There's also a even more detailed page about contributors described here.
    – ruffin
    Jun 12 at 13:54
  • @ruffin that's called Contributors, not "team members". Sep 1 at 10:00
  • @MarcoLackovic I'm not sure what you're getting at in your comment. Did my earlier comment & screenshot answer your question about where to look, was it wrong, or did you need more information? If you're saying you ignored/missed Contributors initially because Kewkimb said "Team Members", I hope this helped. Possibly worth submitting/making an edit if that was the point of confusion.
    – ruffin
    Sep 1 at 19:37
-2

The owners/mantainers are listed in the following file within the repository:

.github/CODEOWNERS 

Source: https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners

1
  • Can anyone motivate the downvotes? Sep 1 at 9:58

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.