Skip to content

Latest commit

 

History

History
53 lines (39 loc) · 983 Bytes

Readme.md

File metadata and controls

53 lines (39 loc) · 983 Bytes

Serverless GH PR Checker

Simple CRON-like lambda script for automatic PR checking and posting them into Slack.

Pull requests with WIP in name are ignored.

Example

Install

  1. clone this repository
$ git clone [email protected]:Twista/github-pr-checker.git
  1. install serverless framework
$ yarn add global serverless
# or
$ npm i g serverless
  1. install package dependencies
cd github-pr-checker
yarn
  1. copy example config and fill variables
mv example-env .env
  1. tweak serverless.yml settings (mainly time and your region)
  2. deploy
sls deploy

Configuration

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