Skip to content

Commit 8dc3df6

Browse files
committed
Enhance utlc discord notification
1 parent 3e6fec5 commit 8dc3df6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/discord_notify_utlc.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ jobs:
1616
uses: tsickert/discord-webhook@v6.0.0
1717
with:
1818
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 }}'
19+
embed-author-name: ${{ github.event.sender.login }}
20+
embed-author-url: ${{ github.event.sender.html_url }}
21+
embed-author-icon-url: ${{ github.event.sender.avatar_url }}
22+
embed-title: "${{ github.event.action == 'closed' && github.event.pull_request.merged == true && 'merged' || github.event.action }} #${{ github.event.number }}: ${{ github.event.pull_request.title }}"
2323
embed-description: ${{ github.event.pull_request.body }}
2424
embed-url: ${{ github.event.pull_request.html_url }}
25+
embed-footer-text: >
26+
diff: +${{github.event.pull_request.additions}} -${{github.event.pull_request.deletions}}

0 commit comments

Comments
 (0)