Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why am I not listed as a contributor to a project that merged my PR?

I had a PR merged to the master branch of an open source project on GitHub. The project is not a fork, and if I view the file in the master tree that I edited in my PR, I am listed there as a contributor to that file.

For some reason, however, I am not appearing in the project's main "contributors" page. Does anyone know why this would be? I've already viewed this GitHub help page about contributions showing up on my own profile but my question is about showing up in the "contributors" page of the actual project.

For reference, here is the PR in question: https://github.com/octokit/octokit.rb/pull/780

like image 935
sixty4bit Avatar asked Apr 01 '17 10:04

sixty4bit


1 Answers

For some cases, it could be a squash merged PR.

The authorship then completely belongs to the person who merged the PR. GitHub seems to credit you as contribution on your profile, but since it's not counted in commit there's a possibility that the changes doesn't makes you a contributor.

When a pull request is merged and commits are squashed, only the user that merged the pull request and the user that opened the pull request receive contribution credit. No other contributors to the pull request will receive contribution credit. link

Update: only the "top" 100 contributors are crawled, and it's a strict limit of 100 and cuts the rest. You only contributed one, so you're end up hiding in the cutted part.

The best way to confirm whether you have the contributor status is to use the recently implemented badge feature in the comments. You seem to have it.

like image 190
Tatsuyuki Ishi Avatar answered Oct 16 '22 00:10

Tatsuyuki Ishi