Skip to content
This repository was archived by the owner on Mar 13, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .github/workflows/notify-discord.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Notify Discord on Pull Request

on:
pull_request:
types: [opened, closed, reopened]

jobs:
notify-discord:
runs-on: ubuntu-latest
steps:
- name: Send notification to Discord
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
run: |
case "${{ github.event.action }}" in
opened)
MESSAGE=":sparkles: A new Pull Request has been opened by **${{ github.event.pull_request.user.login }}**!\n**Title:** ${{ github.event.pull_request.title }}\n[View Pull Request](${{ github.event.pull_request.html_url }})"
;;
closed)
if [ "${{ github.event.pull_request.merged }}" = "true" ]; then
MESSAGE=":tada: The Pull Request by **${{ github.event.pull_request.user.login }}** has been **merged**!\n**Title:** ${{ github.event.pull_request.title }}\n[View Pull Request](${{ github.event.pull_request.html_url }})"
else
MESSAGE=":x: The Pull Request by **${{ github.event.pull_request.user.login }}** has been **closed without merging**.\n**Title:** ${{ github.event.pull_request.title }}\n[View Pull Request](${{ github.event.pull_request.html_url }})"
fi
;;
reopened)
MESSAGE=":repeat: The Pull Request by **${{ github.event.pull_request.user.login }}** has been **reopened**!\n**Title:** ${{ github.event.pull_request.title }}\n[View Pull Request](${{ github.event.pull_request.html_url }})"
;;
esac
curl -H "Content-Type: application/json" \
-d "{\"content\": \"$MESSAGE\"}" \
"$DISCORD_WEBHOOK_URL"
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/
devel/
1 change: 0 additions & 1 deletion test_env/build/.built_by

This file was deleted.

Empty file removed test_env/build/CATKIN_IGNORE
Empty file.
Loading