Support: Creating github action badges

Created on 1 Sep 2020  路  14Comments  路  Source: EddieHubCommunity/support

When a beginner starts to contribute they are given a specific badge on their first successful merge. As they continue contributing, they get different badges to encourage them to contribute more馃敯 and they also get personalized emails 馃拰 with their GitHub profile pic.

enhancement no-issue-activity

Most helpful comment

That's awesome @eddiejaoude and @BOLT04 . From there, different badges can be created for different levels of successful merges.

All 14 comments

Love this idea so much 馃憤

Could we have a counter that increments each time someone performs an action, then later on we can decide on what badges are for each amount: For example

  • 1: Started badge
  • 10: On a role badge
  • ...

This is super awesomeee, great idea @muchirijane ! @eddiejaoude do you think this Github Action could write some of this data on the database of EddieBot and EddieBotUI? If we have something like this:

{
      username: "Eddie",
      badges: [{
         name: "first-contribution",
         emoji: "馃敯", // associated emoji to the badge perhaps??
         description: "This badge is achieved by making a PR and getting a successful merge"
      }]
}

then we can display this info on the UI, and show off cool badge UIs 馃槃.

Yes we could do that in a custom Action with javascript quite easily 馃憤

I think we save the statistics against the user, then in another collection or config file, map what it refers to, so we can update that more easily.

For example

Database

{
   username: "eddiejaoude"
   // ...
   statistics: {
      issue: {
          created: 10,
          comments: 15
      },
      pullRequest: {
          created: 10,
          comments: 15
       }
   }
}

Config

{
   badges: {
      pullrequest: {
          1:  {
                name: "first-contribution",
                emoji: "馃敯", // associated emoji to the badge perhaps??
                description: "This badge is achieved by making a PR and getting a successful merge"
      } ,
      issues: {
          1:  {
                name: "first-contribution",
                emoji: "馃敯", // associated emoji to the badge perhaps??
                description: "This badge is achieved by making an issue"
      } 
   }
}

What do you all think? (ok they dont quite align, but something like that, structure needs a bit more thinking)

That's awesome @eddiejaoude and @BOLT04 . From there, different badges can be created for different levels of successful merges.

Where is this badge being displayed?

@mikeysan I was thinking we could have a markdown badge available for people to use in their custom GitHub profiles, and also on our web app (I will kick off the EddieBotUI next month)

Something like this...

  • issues
  • pull requests

I have started saving the data with a GitHub Action today 馃帀 , data from GitHub in Firestore...

{
   // GitHub User
   author: {avatar_url: "https://avat...},
   id: "624760",
   issue_comment: 8,
   issues: 4,
   push: 3
}

https://github.com/EddieJaoudeCommunity/gh-action-community

Stale issue message

I think this is still a great idea github-actions bot

Yep I agree 馃憤 . I will remove the label so the bot doesn't close the issue

Stale issue message

Looks like it disobeyed you @eddiejaoude so I have removed the label again. Please revert if that was not your intention.

Thank you @mikeysan 馃憤

Stale issue message

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ChoukseyKhushbu picture ChoukseyKhushbu  路  4Comments

eddiejaoude picture eddiejaoude  路  4Comments

BhuvaneshHingal picture BhuvaneshHingal  路  3Comments

PulkitSinghDev picture PulkitSinghDev  路  4Comments

mohit01-beep picture mohit01-beep  路  4Comments