Skip to content

Provide an option to include private contributions in contribution graph

Merged and ready for GitLab 11.3

Problem description

Currently, it is not possible to see contributions to private projects in your public contribution calendar.

Design

  • Provide checkbox setting to enable this feature in: User Settings > Profile
  • By default, this option should be turned off

image

copy:

Private contributions
Include private contributions on my profile
Choose to show contributions to private projects on your public profile without any project, repository or organization information
  • Showing this off on the profile contribution calendar

Also see the Mr discussion from https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/17296#note_62092483

We have recent contributions and contributions dedicated to a selected day. Both are displayed differently.

Get rid of the following red boxed text elements and replace it with in a private project

image

This would result in:

image

Of course, there is more to this than just this contribution...

Administrator created project Administrator / gke-demo would need to be changed to Administrator created a private project

We need to solve this for each kind of contribution with a little bit of common sense as to how to dictate the copy for it. Let's discuss this in the merge request.

  • Setting on profile page

Use following icons from http://gitlab-org.gitlab.io/gitlab-svgs/

image

This would look like:

image

With the dropdown looking like:

Bitmap

Original proposal/description

So I have my personal profile page here:

https://gitlab.com/u/cbanga

To the public user, my commit history looks like this:

Screen_Shot_2016-03-07_at_12.02.19_PM

But for me privately, it looks like this: Screen_Shot_2016-03-07_at_12.02.36_PM

I would love to link to GitLab in my resume/portfolio, etc. And the second graph looks much better from that standpoint with respect to my work. I would LOVE to be able to get that graph on my public page, with maybe some info on the number of repositories I've committed to in total, etc. I can see some users having issue with this and privacy, so maybe an opt-in?

Something like having my private graph, with a line under that said "CBanga has made X commits to Y repositories over the past 365 days." would be a really neat and powerful way for me to link my GitLab in my portfolios/resume, and much better than GitHub, etc. I know this number is totally useless, easily manipulated, etc. But some people actually care about this (unfortunately), so a blank profile just looks bad, and I would never share it.

Edited by George Tsiolis