mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
bot for pr notifications (#31985)
Going to take some testing to get this right
This commit is contained in:
22
.github/workflows/discord_notify.yml
vendored
Normal file
22
.github/workflows/discord_notify.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
name: Discord Notify
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [ labeled ]
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
if: ${{ github.event.label.name == 'React Core Team' }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Discord Webhook Action
|
||||
uses: tsickert/discord-webhook@v6.0.0
|
||||
with:
|
||||
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
|
||||
embed-author-name: ${{ github.event.pull_request.user.login }}
|
||||
embed-author-url: ${{ github.event.pull_request.user.html_url }}
|
||||
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
|
||||
embed-title: '#${{ github.event.number }}: ${{ github.event.pull_request.title }}'
|
||||
embed-description: ${{ github.event.pull_request.body }}
|
||||
embed-url: ${{ github.event.pull_request.html_url }}
|
||||
|
||||
Reference in New Issue
Block a user