Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 992 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 992 Bytes

SlackBot Pending Reviews

A Lambda that retrieve pull requests of all the repositories of an organization through the GitHub API and sends a message on Slack reminding the desired developers that they have pending review requests.

Installation

# Clone the repo
git clone https://github.com/rubyistdotjs/slackbot-pending-reviews.git

cd slackbot-pending-reviews

# Install dependencies
npm install

# Setup env files
cp .env.example .env
cp .env.example .env.production

Run locally

# Using .env
serverless invoke local --function notify-pending-reviews

# Using .env.production
serverless invoke local --function notify-pending-reviews --env production

Deploy

NODE_ENV=production serverless deploy --aws-profile AWS_PROFILE --verbose
NODE_ENV=production serverless deploy --aws-profile AWS_PROFILE --function notify-pending-reviews --verbose