Send emails when new GitHub Issues are created for a repo.
$ sudo apt-get install g++ zlib1g zlib1g-dev autoconf
$ npm install github-notify
Edit the config.json
file:
How often to check for new issues (in minutes).
A GitHub username or organisation name.
A GitHub repository.
Not required. Follow instructions at node-github.
For config of these follow instructions at Nodemailer.
For config of these follow instructions at Nodemailer.
An object with two Eco templates for building the email. Plaintext is auto-generated from the HTML version.
And finally start it all up:
$ node index.js
There is also a service on /
started on an automatic port or one specified through command line.
One can use ENV variables in the config.
Replace the value in the config.json
file with a string that begins with a $
followed by the ENV variable path. The app will recognize that and get the value from the environment. Example:
"$GITHUB_TOKEN"
> process.env.GITHUB_TOKEN
The data is stored in a flat file EJDB
database, app reload on PaaS platforms like Heroku will probably wipe your history.