Merge pull request #739 from RooVetGit/discord_pr_threads

Post PRs to a thread instead
This commit is contained in:
Matt Rubens 2025-02-02 14:56:44 -05:00 committed by GitHub
commit 0e7e5c50be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,11 +11,10 @@ jobs:
if: github.head_ref != 'changeset-release/main'
steps:
- name: Send Discord Notification
uses: Ilshidur/action-discord@master
with:
args: |
🚀 **New PR:** ${{ github.event.pull_request.title }}
🔗 <${{ github.event.pull_request.html_url }}>
👤 **Author:** ${{ github.event.pull_request.user.login }}
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
run: |
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
-H "Content-Type: application/json" \
-d '{
"content": "🚀 **New PR:** ${{ github.event.pull_request.title }}\n🔗 <${{ github.event.pull_request.html_url }}>\n👤 **Author:** ${{ github.event.pull_request.user.login }}",
"thread_name": "${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}"
}'