Giter Site home page Giter Site logo

occidere / githubwatcher Goto Github PK

View Code? Open in Web Editor NEW
6.0 3.0 2.0 139 KB

Integrated GitHub Activity Notification System

Home Page: https://github.com/occidere/GithubWatcher

License: Apache License 2.0

Scala 100.00%
scala api elasticsearch line sbt sbt-assembly github github-actions github-api notification

githubwatcher's Introduction

GithubWatcher

Scala CI FOSSA Status Coverage Status Java Version Scala Version GitHub license

Integrated GitHub Activity Notification System.


Features

1. Follower change notification

Notify follower increase / decrease.

Examples

image


2. Repository change notification

Notify Stargazer / Watcher / Fork change both increase and decrease.

Examples

image


3. Reaction change notification

Notify Reaction Emoji increment / decrement.

Examples

image


Work Flow

  1. Get latest information of user and repository from Github API
  2. Get previous information of user and repository from database (Elasticsearch)
  3. Comparing both of them to find changes
    • Increase/Decrease of Followers
    • Increase/Decrease of Stargazers
    • Increase/Decrease of Watchers
    • Increase/Decrease of Forks
    • Increase/Decrease of Reactions Emoji
  4. Send notification message on Line
  5. Save latest information on database

Build and Run

Build with sbt

git clone https://github.com/occidere/GithubWatcher.git
cd GithubWatcher
sbt clean assembly

Run jar

export gw_tasks=followerWatchTask,repositoryWatchTask,reactionWatchTask # tasks
export gw_user_id=${YOUR_GITHUB_USER_ID}
export gw_es_endpoint=${YOUR_ES_ENDPOINT} # default: localhost:9200
export gw_es_username=${YOUR_ES_USERNAME) # Optional
export gw_es_password=${YOUR_ES_PASSWORD} # Optional
export gw_line_bot_id=${YOUR_LINE_BOT_ID}
export gw_line_channel_token=${YOUR_LINE_CHANNEL_TOKEN}
export gw_github_api_token=${YOUR_GITHUB_API_TOKEN}

java -jar target/scala-2.13/GithubWatcher.jar

License

FOSSA Status

githubwatcher's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

rheehot fossabot

githubwatcher's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.