mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-21 04:07:54 +03:00
add a workflow that notifies slack on a PR review request
This commit is contained in:
parent
0aab064112
commit
42fad94d8f
20
.github/workflows/notify-slack.yml
vendored
Normal file
20
.github/workflows/notify-slack.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
name: Notify Slack on PR Review Request
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [review_requested]
|
||||
|
||||
jobs:
|
||||
notify_slack:
|
||||
runs-on: ubuntu-latest
|
||||
if: contains(github.event.pull_request.requested_teams.*.slug, 'volunteer-a11y-reviewers')
|
||||
steps:
|
||||
- name: Notify Slack
|
||||
uses: slackapi/slack-github-action@v1.24.0
|
||||
with:
|
||||
payload: |
|
||||
{ "pr_url": "${{ github.event.pull_request.html_url }}",
|
||||
"pr_title": "${{ github.event.pull_request.title }}",
|
||||
"pr_author": "${{ github.event.pull_request.user.name }}"
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
Loading…
Reference in New Issue
Block a user