Skip to content

Commit 9d9ae3c

Browse files
committed
Notify of PRs the UTLC community
1 parent cf4251a commit 9d9ae3c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Discord notify for a Ukrainian community--UTLC (#react-docs-alert channel)
2+
name: Discord Notify
3+
4+
on:
5+
pull_request_target:
6+
types: [closed, opened, reopened, ready_for_review]
7+
8+
permissions: {}
9+
10+
jobs:
11+
notify:
12+
if: github.repository == 'reactjs/uk.react.dev'
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Discord Webhook Action (UTLC)
16+
uses: tsickert/discord-webhook@v6.0.0
17+
with:
18+
webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL_UTLC }}
19+
embed-author-name: ${{ github.event.pull_request.user.login }}
20+
embed-author-url: ${{ github.event.pull_request.user.html_url }}
21+
embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
22+
embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
23+
embed-description: ${{ github.event.pull_request.body }}
24+
embed-url: ${{ github.event.pull_request.html_url }}

0 commit comments

Comments
 (0)