Skip to content

ygnoh/actions-request-pr-review

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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

request-pr-review

Github Actions to request PR reviews using Slack

intro

Usage

  1. Set the secret SLACK_BOT_TOKEN for messaging

Your repository > Settings > Secrets > New repository secret

The Value have to be a token in the form of xoxb- provided by Slack.

  1. Create a file .github/workflow/request-pr-review.yml:
name: Request PR Review

on:
  schedule:
    - cron: '0 1 * * 1-5' # The notification period you want. See https://crontab.guru/
    
jobs:
  requestReview:
    runs-on: ubuntu-latest
    steps:
      - name: Request PR Review
        uses: ygnoh/actions-request-pr-review@v1.1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          slackBotToken: ${{ secrets.SLACK_BOT_TOKEN }}
          repoUrl: 'https://github.com/ygnoh/actions-tutorial'

Inputs

token

Required A token provided by Github

slackBotToken

Required A token of your Slack Bot for sending messages

e.g. xoxb-798572638592-435243279588-9aCaWNnzVYelK9NzMMqa1yxz

repoUrl

Required URL of your repository

e.g. github.com/username/reponame