Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noting milestone contributions #203

Open
angelasjin opened this issue Jul 11, 2022 · 2 comments
Open

Noting milestone contributions #203

angelasjin opened this issue Jul 11, 2022 · 2 comments

Comments

@angelasjin
Copy link

I'm not sure how this might be already done, so any notes would be helpful!

I think it would be fun and encouraging to see milestones in contributions, for example:

  • You made your first contribution to the _____ Team! Thanks for building WordPress and making it an even better project.
  • Wow, congrats on making your 50th contribution to the ______ Team! 👏
  • Congrats @username, you've been an active contributor for 6 consecutive months!

You get the idea :) What would it take to do something like this?

@courtneyr-dev
Copy link

Those milestones might be handy to also share to those managing badges for their teams. I know some teams set a total, like support forums is 400 replies unrelated to your own plugins. That earns a contributor badge.

@iandunn
Copy link
Member

iandunn commented Jul 13, 2022

That should be doable. The implementation details would probably depend on exactly what the milestones are, and may need to be different for different milestones.

In general though, a cron job could run daily and count the # of specified activities for each user, then add a profile entry if it's at the milestone. Then it'd update usermeta with a note that they reached that milestone, so that tomorrow's cron job doesn't add a duplicate notification.

We might need to start saving some additional meta data in some cases, but it'll depend on the exact milestones.

Related to #189 since it may use that data a bit, cc @StevenDufresne as FYI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants