mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-09-11 22:51:26 +00:00
24 lines
732 B
YAML
24 lines
732 B
YAML
name: Discord PR Notifier
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request_target:
|
|
types: [opened]
|
|
|
|
jobs:
|
|
notify:
|
|
runs-on: ubuntu-latest
|
|
if: github.head_ref != 'changeset-release/main'
|
|
steps:
|
|
- name: Send Discord Notification
|
|
env:
|
|
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
PR_URL: ${{ github.event.pull_request.html_url }}
|
|
PR_USER: ${{ github.event.pull_request.user.login }}
|
|
run: |
|
|
curl -X POST ${{ secrets.DISCORD_WEBHOOK }} \
|
|
-H "Content-Type: application/json" \
|
|
-d '{
|
|
"content": "🚀 **New PR:** $PR_TITLE\n🔗 <$PR_URL>\n👤 **Author:** $PR_USER",
|
|
"thread_name": "$PR_TITLE by $PR_USER"
|
|
}'
|