3

Hello StackOverflow.
I came across a strange bug on Github.

Repository Link

I created a repository 4 months ago. And added only 2 contributors to that repository.

• I didn’t add anymore contributors But There is another contributor added.

ScreenShot of Contributor

• I tried to remove that contributor but couldn’t find him on Collaborators & Teams - Manage Access

ScreenShot of Contributor Page

  • 2
    The automatic listed contributors are all people that did some commits on your repo. This guy did one commit: https://github.com/ishtiaqSamdani/GoHealthy/commit/9e3b0170999c8e736abb96aa3b6d4725a9077685. The contributors you can administrate have special rights on the repo (e.g. merging PRs, closing issues, creating release and so on). But not everyone who contributed code to your repo should have these rights. Albei being named similarly they are not the same. – mistapink Sep 05 '22 at 08:08

3 Answers3

1

You have to set the Branch protection rule by enabling Require approvals under Settings > Branches > Branch protection rules > Require a pull request before merging > Require approvals.

yohanes
  • 2,365
  • 1
  • 15
  • 24
0

That's maybe because he made a commit and you/your team accepted his pull request

Raman-13
  • 1
  • 1
  • 2
    That's the problem Mr.Raman no one has pulled anything and more over that person's last activity on GitHub was on December 3rd, 2021 [YushaBinArif](https://github.com/YushaBinArif) – ISHMART ISHTIAQ Sep 05 '22 at 14:54
  • c.f. https://docs.github.com/en/account-and-profile/setting-up-and-managing-your-github-profile/managing-contribution-settings-on-your-profile/why-are-my-contributions-not-showing-up-on-my-profile `You are a collaborator on the repository or are a member of the organization that owns the repository.` Since he's not a collaborator as stated per your question, this commit is not counted in his contributions/activities. – mistapink Sep 07 '22 at 09:15
0

Related question.

It seems that GitHub uses the email address to list the contributors. Looking at the patch and a random one from YushaBinArif like this one both use the same email address.

Add .patch at the end of the commit URL to see the patch.

notoria
  • 2,053
  • 1
  • 4
  • 15