A serverless Slack Slash Commands to get pull-requests from your repositories, that need to be reviewed. Using AWS Lambda, and DynamoDB.
- Lastest Node.js LTS
- Install Serverless framework.
- Have an AWS account, and add the AWS credentials on
~/.aws/credentials
file. - Follow next steps
- Create a personnel access token with
repo
permission. - View and copy the token to a temporary place. You'll need it later.
- Go to https://api.slack.com/apps/
- Click on
Create New App
- Click on
From an app manifest
- Select the workspace
- Choose
JSON
tab, and copy data from the./manifest.json
file - Review summary and create the app
- Install to Workspace
- Click on
OAuth & Permissions
, view and copy the token (xoxb-XXXX
) to a temporary place. You'll need it later.
- Create an
.env
file and fill it with the properties of the.env.example
file. serverless deploy --stage prod
(orserverless deploy
for development purposes, theserverless
configuration file is based on thedev
environment by default).- Once the deploy is successful, get the
endpoints
and update theRequest URL
of the Slash/reviews
Command.
See the help file for all available commands.