Note, in order for this to work, be sure to have a token available with required permissions to leverage the GitHub GraphQL API: Authenticating with GraphQL
name: Review Badger
on:
schedule:
# Every weekday every 2 hours during working hours, send notification
- cron: '0 8-17/2 * * 1-5'
jobs:
pr-reviews-reminder:
runs-on: ubuntu-latest
steps:
uses: sparkpost/review-badger@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_API_TOKEN }}
GITHUB_REPOSITORY: ${{ github.repository }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
with:
slackChannel: '#general'
- Make desired changes
- Run
npm run build
- Commit those compiled changes to the default branch