DEV Community

Cover image for You Contribute, You Rock! (gh-action hackathon - WEEK 1)
Prathamesh Sahasrabhojane βœ”οΈ
Prathamesh Sahasrabhojane βœ”οΈ

Posted on • Edited on

You Contribute, You Rock! (gh-action hackathon - WEEK 1)

Hey there folks πŸ‘‹

This is a summary of my last week that I spent on github actions.
I am developing a Contributor Appreciator Action called YouRock.

What It'll do?

  1. It'll send out a personalized email to contributors with some personalized Image Processed material with #️⃣open-cv

  2. Also, It'll consist of some Badges that contributors can showcase on their social media.

Aim and Impact

This action will help #️⃣ maintainers to improve the outreach and Public Relations.

Stack

  1. Github Actions running on ubuntu
  2. Python
  3. open-cv
  4. Pillow
  5. GraphQL

Work done :

  1. Process the GrphQL query to find the user's avatar and email in actions.
  2. Send out an email.

Simple Email sent from action

Code -

- uses: octokit/graphql-action@v2.x
        id: start_sending
        with:
          query: |
            query send($login:String!){
              user(login:$login){
                  login
                  avatarUrl
                  email
                }
              }
          login: ${{ github.actor }}
Enter fullscreen mode Exit fullscreen mode

Run Python Script

- name: Send Email
        run: |
          python ./Rock.py '${{steps.start_sending.outputs.data}}' '${{github.repository}}'
Enter fullscreen mode Exit fullscreen mode

Repository - https://github.com/TheShubham99/YouRock/

Top comments (2)

Collapse
 
tracycss profile image
Jane Tracy πŸ‘©πŸ½β€πŸ’»

This is a great way to motivate others especially first-timers. Awesome 🌟

Collapse
 
theshubham99 profile image
Prathamesh Sahasrabhojane βœ”οΈ

Thanks Jane :)
It's open for suggestions, LMK if any β­πŸ˜„

btw You can create a test issue to test it :)
Link - github.com/TheShubham99/YouRock/