4

I made 28 commits on my play_grnd branch. When I merged my branch into master branch (or someone merged my branch into master),

Does contributions section on my profile page update itself with changes in varying shades of green?

2

2 Answers 2

6

Does contributions section on my profile page update itself with changes in varying shades of green?

Yes. However, there are exceptions to how contributions are tracked based on the method used for merging a pull request.

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.

When rebasing commits, the original author of the commit and the person who rebased the commits, whether on the command line or on GitHub, receives contribution credit.

1
  • What about the date of the contribution? If the PR merger, merge the commits. Will the commits contribution count added to the exact commit and push date or only the merge date?
    – Jak
    Feb 20, 2019 at 11:57
1

Commits will only count as contributions (which show up as the shaded green squares on your profile) if they are made to the default branch (master, unless you changed it) or the gh-pages branch. That is the main requirement, but other specifics are factored in.

You can read all the details of when a commit counts as a contribution and when it doesn't here:

https://help.github.com/articles/why-are-my-contributions-not-showing-up-on-my-profile/#commits

2
  • This isn't what I asked, but thanks. The correct answer is in comments above. Update your answer with that and I'll accept this as correct answer :) Apr 14, 2017 at 17:41
  • Thanks, but I'll let @osowskit do that... don't want to take credit for his work. Glad you got your answer.
    – freginold
    Apr 14, 2017 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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