Skip to content

Fix #70

Fix #70 #46

name: PR Reviewer Requested
on:
pull_request:
types: [review_requested]
jobs:
slack_message_reviewer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: borales/[email protected]
with:
cmd: add @slack/bolt mongoose
- uses: actions/github-script@v6
env:
SLACK_TOKEN: ${{ secrets.CTC_SLACKBOT_OAUTH_TOKEN }}
SIGNING_SECRET: ${{ secrets.CTC_SLACKBOT_SIGNING_SECRET }}
APP_LEVEL_TOKEN: ${{ secrets.CTC_SLACKBOT_APP_LEVEL_TOKEN }}
MONGO_URI: ${{ secrets.CTC_SLACKBOT_MONGO_URI }}
with:
script: |
const messageReviewer = require('./.github/workflows/scripts/reviewRequested');
await messageReviewer({context});