LINE Notify Gateway for Github Enterprise.
Python HTML Mako CSS
Latest commit fe08954 Sep 29, 2016 @be-hase committed on GitHub Update README.md
Permalink
Failed to load latest commit information.
app
migrations
requirements initial commits. Sep 29, 2016
.gitignore
Dockerfile
LICENSE
Procfile initial commits. Sep 29, 2016
README.md
app.json
gunicorn_config.py
manage.py
requirements.txt
run_dev_server.py initial commits. Sep 29, 2016
runtime.txt

README.md

ghe-line-notify

LINE Notify Gateway for Github Enterprise.
(Of course, you can use not only Github Enterprise but also Github.)

,-----------------.
|Github Enterprise|
`-----------------'
         |
         | Send webhook.
         ▽
 ,---------------.
 |ghe-line-notify| Receive Webhook and render message text.
 `---------------'
         |
         | Call LINE Notify API.
         ▽
   ,-----------.
   |LINE Notify|
   `-----------'

Let's try. Deploy

Getting start

Prerequisites

  • Python 3.x (3.5.x recomended)
  • (pip)

Setup

git clone https://github.com/be-hase/ghe-line-notify
cd ghe-line-notify

pip install -r requirements/common.txt

python manage.py db upgrade

Default uses sqlite, and creates sqlite's db file at ~/.ghe-line-notif/app.db.

Running Locally For Developing

python run_dev_server.py

Running on Gunicorn

gunicorn -c gunicorn_config.py app:app

Deploying to Heroku

heroku create
heroku addons:add heroku-postgresql:hobby-dev

git push heroku master

heroku run python manage.py db upgrade
heroku open

or Deploy

Config

If you want to change config, set environment variables.

  • GHE_LN_DATABASE_URI
    • Specify database URI.
      • dialect+driver://username:password@host:port/database
    • If not specified, uses sqlite, and creates sqlite's db file at ~/.ghe-line-notif/app.db.
  • GHE_LN_SECRET_KEY
    • Crypt for sign cookies and other things.
    • Default value is to_be_overridden.

for example export GHE_LN_SECRET_KEY=hoge.

Screenshots

Added Token Page

Token Page

Webhook Message Template Page