Skip to content

Commit

Permalink
PR request notifs
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerSchaefer4 committed Sep 25, 2023
1 parent c020ee4 commit 953b5c9
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/notify_slack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Notify Slack on PR

on:
pull_request:
types: [opened]

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send notification to Slack
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
uses: 8398a7/action-slack@v3
with:
status: custom
fields: workflow,job,commit,repo,ref,author,took
custom_payload: |
{
text: "A pull request event occurred:\n Event: ${{ github.event_name }}\n Repo: ${{ github.repository }}\n Author: ${{ github.actor }}\n Link: ${{ github.event.pull_request.html_url }}"
}

0 comments on commit 953b5c9

Please sign in to comment.