- Create a slack bot and obtain the OAuth token. (e.g
xoxb-##################...####
) - Github OAuth token
- Organization name
- Create a
channelMappings.json
file insidechannelMaps
folder. - Run the build script:
npm run build:commonjs
- Run the script:
SLACK_TOKEN='' GITHUB_TOKEN='' ORG_NAME='' node lib/index.js
Tip: You can put this code into a run.sh
file
- Put this code in a pubsub and trigger it from a cron service.
- Use this as a heroku worker with the heroku scheduler plugin. (Free but needs you add a credit card π€·ββοΈ)
Mappings file is source of mapping between the github developer username and slack channel id.
Use slack api to find out channel ids for your slack users.
- List down user ids: https://slack.com/api/users.list
- Get channel for each user: https://slack.com/api/conversations.open
channelMappings.json
should look something like:
{
"johnnyblaze": {
"channelId": "DX12989821"
}
}
- Convert this into a one click installable slack app.
- Figure out a way to exempt developers from reminders who have already shared a review.
- Fork the project.
- Clone it locally.
- Open a PR π targeting the source branch