@samitouri / QOS-React-2 / commits / 7b402084af

Fix notify target, add lines (#32006)

Ricky committed Jan 7, 2025 at 09:34 UTC 7b402084af3f43284eed3c7c3155762a871fc817
1 file changed +15 -16
.github/workflows/discord_notify.yml
+15 -16
@@ -1,22 +1,21 @@
1 name: Discord Notify
2
3 on:
4 - pull_request:
4 + pull_request_target:
5 types: [ labeled ]
6 -
6 +
7 jobs:
8 notify:
9 - if: ${{ github.event.label.name == 'React Core Team' }}
10 - runs-on: ubuntu-latest
11 - steps:
12 - - name: Discord Webhook Action
13 - uses: tsickert/discord-webhook@v6.0.0
14 - with:
15 - webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16 - embed-author-name: ${{ github.event.pull_request.user.login }}
17 - embed-author-url: ${{ github.event.pull_request.user.html_url }}
18 - embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
19 - embed-title: '#${{ github.event.number }}: ${{ github.event.pull_request.title }}'
20 - embed-description: ${{ github.event.pull_request.body }}
21 - embed-url: ${{ github.event.pull_request.html_url }}
22 -
\ No newline at end of file
9 + if: ${{ github.event.label.name == 'React Core Team' }}
10 + runs-on: ubuntu-latest
11 + steps:
12 + - name: Discord Webhook Action
13 + uses: tsickert/discord-webhook@v6.0.0
14 + with:
15 + webhook-url: ${{ secrets.DISCORD_WEBHOOK_URL }}
16 + embed-author-name: ${{ github.event.pull_request.user.login }}
17 + embed-author-url: ${{ github.event.pull_request.user.html_url }}
18 + embed-author-icon-url: ${{ github.event.pull_request.user.avatar_url }}
19 + embed-title: '#${{ github.event.number }} (+${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}): ${{ github.event.pull_request.title }}'
20 + embed-description: ${{ github.event.pull_request.body }}
21 + embed-url: ${{ github.event.pull_request.html_url }}
\ No newline at end of file