Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.
/ review-badger Public archive

GitHub Action that posts to Slack with relevant GitHub pull requests that need a reviewer.

Notifications You must be signed in to change notification settings

SparkPost/review-badger

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Review Badger

GitHub Action Installation

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

Example Usage

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'

Publishing Changes

  1. Make desired changes
  2. Run npm run build
  3. Commit those compiled changes to the default branch

About

GitHub Action that posts to Slack with relevant GitHub pull requests that need a reviewer.

Topics

Resources

Stars

Watchers

Forks