diff --git a/.github/workflows/discord-pr.yml b/.github/workflows/discord-pr.yml new file mode 100644 index 0000000..a3ef1be --- /dev/null +++ b/.github/workflows/discord-pr.yml @@ -0,0 +1,20 @@ +name: Discord PR Notifications + +on: + pull_request: + types: [opened] + +jobs: + notify-discord: + runs-on: ubuntu-latest + steps: + - name: Send PR notification to Discord + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + uses: Ilshidur/action-discord@master + with: + args: | + 📣 New Pull Request! + #${{ github.event.pull_request.number }}: ${{ github.event.pull_request.title }} + Opened by: ${{ github.event.pull_request.user.login }} + URL: ${{ github.event.pull_request.html_url }}