Skip to content

Commit 0e7e5c5

Browse files
authored
Merge pull request RooCodeInc#739 from RooVetGit/discord_pr_threads
Post PRs to a thread instead
2 parents cddd92b + bf799d7 commit 0e7e5c5

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

.github/workflows/discord-pr-notify.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,10 @@ jobs:
1111
if: github.head_ref != 'changeset-release/main'
1212
steps:
1313
- name: Send Discord Notification
14-
uses: Ilshidur/action-discord@master
15-
with:
16-
args: |
17-
🚀 **New PR:** ${{ github.event.pull_request.title }}
18-
🔗 <${{ github.event.pull_request.html_url }}>
19-
👤 **Author:** ${{ github.event.pull_request.user.login }}
20-
env:
21-
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
14+
run: |
15+
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
16+
-H "Content-Type: application/json" \
17+
-d '{
18+
"content": "🚀 **New PR:** ${{ github.event.pull_request.title }}\n🔗 <${{ github.event.pull_request.html_url }}>\n👤 **Author:** ${{ github.event.pull_request.user.login }}",
19+
"thread_name": "${{ github.event.pull_request.title }} by ${{ github.event.pull_request.user.login }}"
20+
}'

0 commit comments

Comments
 (0)