Skip to content

Commit

Permalink
Merge pull request #2 from rickhanlonii/rh/discord-bot
Browse files Browse the repository at this point in the history
bot for pr notifications
  • Loading branch information
rickhanlonii authored Jan 6, 2025
2 parents e0c893f + fe6f4ba commit b47ca51
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/discord_notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Discord Notify

on:
pull_request:
types: [opened]

jobs:
notify:
if: ${{ github.event.label.name == 'React Core Team' }}
runs-on: ubuntu-latest
steps:
- name: Discord Message Notify
uses: appleboy/discord-action@v1.1.0
with:
webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
message: "New PR from ${{ github.event.author.login }}: [#${{ github.event.pull_request.title }}](${{ github.event.pull_request.permalink }})"

0 comments on commit b47ca51

Please sign in to comment.