pluralsight / guides-cms

DEPRECATED - Markdown based CMS with Github repository as persistent storage
http://www.pluralsight.com/guides/
GNU Affero General Public License v3.0
108 stars 35 forks source link

Guide contributions not showing up on users' profiles #40

Open durden opened 8 years ago

durden commented 8 years ago

We want users to always get credit for their guides and edits. This means making sure we satisfy the Github contribution rules for commits.

Our current scheme will allow contributions to count for any user that has manually starred the content repository. We could improve this by automatically starring the repository for the user when they try to do an action that makes a commit.

The assumption is that once a user actively contributes something to our repository they want their contribution to count.

durden commented 8 years ago

See this documentation to see how to star a repository via the github API.

durden commented 8 years ago

Copied from the github contribution documentation. We must satisfy at least 1 of these:

Some users might have forked, starred, or opened a PR/issue already. So, their contributions will already count. We could try to be intelligent and only star the repo if a contributing user hasn't met 1 of those criteria already. This could turn into several API requests so maybe we just star it by default?

The best place to put this change is probably in the api_save function of the views.py module.