diff --git a/.github/workflows/slack-notify-pr-open.yml b/.github/workflows/slack-notify-pr-open.yml new file mode 100644 index 00000000..e992b56a --- /dev/null +++ b/.github/workflows/slack-notify-pr-open.yml @@ -0,0 +1,22 @@ +name: slack-notify-pr-open + +on: + pull_request: + types: [opened, reopened] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send Slack notification + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_USERNAME: Github CI + SLACK_ICON: https://github.com/github.png + MSG_MINIMAL: ref,event + SLACK_COLOR: '#36a64f' + SLACK_TITLE: 'New Pull Request 🚀' + SLACK_MESSAGE: | + #${{ github.event.pull_request.number }} ${{ github.event.pull_request.title }} + 🔗 ${{ github.event.pull_request.html_url }}