Skip to content

Twista/github-pr-checker

Repository files navigation

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

About

Serverless GH PR checker, notify to slack

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages