Simple CRON-like lambda script for automatic PR checking and posting them into Slack.
Pull requests with WIP
in name are ignored.
- clone this repository
$ git clone [email protected]:Twista/github-pr-checker.git
- install serverless framework
$ yarn add global serverless
# or
$ npm i g serverless
- install package dependencies
cd github-pr-checker
yarn
- copy example config and fill variables
mv example-env .env
- tweak serverless.yml settings (mainly time and your region)
- deploy
sls deploy
GITHUB_TOKEN
is token you can obtain at https://github.com/settings/tokens
GITHUB_REPO
target repository in <org>/<repo>
format
SLACK_HOOK_URL
https://hooks.slack.com/services/...
SLACK_CHANNEL_NAME
e.g #general
SLACK_BOT_NAME
e.g PR-Chek
HOURS_OLD
since when we want to notify about Pull Requests