Skip to content

Commit

Permalink
chore: add slack notifier
Browse files Browse the repository at this point in the history
  • Loading branch information
IanKnighton committed Oct 7, 2024
1 parent 8b4d04e commit ae6c6e3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/slack-notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Notify Maintainer

on:
pull_request:
types: [opened, reopened]
branches:
- main

jobs:
notify:
name: Send Slack Notification
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Send GitHub Action trigger data to Slack workflow
id: slack
uses: slackapi/[email protected]
with:
payload: |
{
"repoName": "${{ github.repository }}",
"prNumber": "${{ github.event.pull_request.number }}",
"requester ": "${{ github.actor }}",
"link": "${{ github.server_url }}/${{ github.repository }}/pull/${{ github.event.pull_request.number }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit ae6c6e3

Please sign in to comment.