mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
Different approach to escaping
This commit is contained in:
parent
7e237df2e8
commit
0bcfbd46f3
1 changed files with 11 additions and 5 deletions
16
.github/workflows/discord-pr-notify.yml
vendored
16
.github/workflows/discord-pr-notify.yml
vendored
|
|
@ -12,9 +12,15 @@ jobs:
|
|||
steps:
|
||||
- name: Send Discord Notification
|
||||
run: |
|
||||
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
|
||||
PAYLOAD=$(jq -n \
|
||||
--arg title "${{ github.event.pull_request.title }}" \
|
||||
--arg url "${{ github.event.pull_request.html_url }}" \
|
||||
--arg author "${{ github.event.pull_request.user.login }}" \
|
||||
'{
|
||||
content: ("🚀 **New PR:** " + $title + "\n🔗 <" + $url + ">\n👤 **Author:** " + $author),
|
||||
thread_name: ($title + " by " + $author)
|
||||
}')
|
||||
|
||||
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 }}"
|
||||
}'
|
||||
-d "$PAYLOAD"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue