DEV Community

Mohammed Bilal
Mohammed Bilal

Posted on

Whatsapp Notifications for Github

sample

My Workflow

I am new to open source I always feel that extra happiness when somebody stars/forks one of my projects.It means a few lines of what i have written was useful to somebody somewhere in the world.What more could I be proud of.
So I created an action helps you track your personal repo changes and also notifies you whenever somebody stars or forks your repositories on whatsapp.I have found many telegram and slack notification actions so decided to create one for whatsapp
Here's my workflow

name:  Whatsapp Notify
on:
  issue_comment:
    types: created
  pull_request:
    types: [opened, closed, edited, ready_for_review, review_requested, reopened]
  issues:
    types: [opened, edited, pinned, closed, reopened, assigned, labeled]
  page_build:
  watch:
    types: [started]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - name: wa-notify
        uses: mdb571/wa-action@master
        with:
          from: ${{ secrets.FROM }}
          to: ${{secrets.TO }}
        env:
          TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
          TWILIO_AUTH_TOKEN: ${{ secrets.TWILIO_AUTH }}

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

Whatsapp Bot Github Action🚀

This is a GitHub Action to notify the user about the changes in a github repo to Whatsapp via Bot. This will help the user track the overall workflow of the project directly form whatsapp

Use

Copy the main.yml to your workflow
          OR
Use the action directly form the actions marketplace here

Setup

  1. Create a free twilio account here.
  2. From your twilio dashboard fetch ACCOUNT SID and AUTH TOKEN.

Twilio Dasboard

3. Join the twilio whatsapp sandbox by sending your join code to the twilio whatsapp number

Twilio Sandbox

  1. Create the following secrets in your repository by going to settings>secrets
SECRET Purpose
FROM The twilio whatsapp bot number (default= +14155238886)
TO Your Whatsapp number
TWILIO_ACCOUNT_SID twilio account sid obtained from your twilio dashboard
TWILIO_AUTH twilio auth token obtained from your twilio dashboard

Screenshots

Sample

Support

Give a 🌟 if this project helped you!

Additional Resources / Info

Currently I am using this action to track one of my recent project on github

GitHub logo mdb571 / n00b-api

api to get attendance,marks etc from college website

A Simple Flask API to scrape data from our college student portal linways tkmce.This API can be used for your projects to create bots,mobile applications etc.However this is not the official one.This was done for development purposes only.

Endpoints

Home / Request method=POST

  • Send a POST request with the json body {"Username":"ADMNO","Pass":"SOMEPASS"} to perform login eg: {"Username":"181234","Pass":"181234"} Sample response
        "studendata":{
                    "Name":Romero
                    "Batch": "EEE2018, S4"
                    }
         "status":"OK"
    

Attendance /attendance

  • View the subject wise attendance details for the current semester

Total Attendance /attendance/all

  • View the total attendance for the entire sem.

Assignment /assignment/sem=<sem>

  • View the assignment evaluation details of the specified semester eg: assignment/sem=4

Internals /internal/sem=<sem>

  • View the Internals evaluation details of the specified semester eg: internal/sem=4

Notifications /notify

  • View notifications of new assignments,Note and quizess etc.

Pending Assignments /pending

  • View details of pending assignments.

Development

Clone the repo :

git clone https://github.com/mdb571/n00b-api.git

Install dependencies :

pip install -r requirements.txt

Run

Note

Anyone who finds this action useful please spare a sec to ⭐ this project on github

Top comments (0)