Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
danbrady authored Nov 21, 2024
1 parent cc721f5 commit 766ba08
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PR creation event notification

on:
pull_request:
- opened
- reopened

jobs:
notify:
name: PR notification
runs-on: [ubuntu-latest]
steps:
- name: Post message
uses: slackapi/slack-github-action@v1.25.0
env:
SLACK_WEBHOOK_URL: https://slack.com/shortcuts/Ft0829LWHYRF/641deb7a6798e112a2b56587d08bf3cb
with:
payload: |
{
"title": ${{ toJson(github.event.pull_request.title) }},
"author": ${{ toJson(github.event.pull_request.user.login) }},
"link": ${{ toJson(github.event.pull_request.html_url) }}
}

0 comments on commit 766ba08

Please sign in to comment.