Skip to content

Commit 86dcd1a

Browse files
authored
Merge pull request #1 from Modern-Programming-Club/feature/add-github-action
Add Slack notification workflow for merged PRs
2 parents e55216c + 47d0f72 commit 86dcd1a

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Notify Slack on PR Merge
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
jobs:
8+
notify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check if PR was merged
12+
if: github.event.pull_request.merged == true
13+
uses: rtCamp/action-slack-notify@v2
14+
env:
15+
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
16+
SLACK_MESSAGE: |
17+
✅ PR Merged!
18+
🔗 Repository: `${{ github.repository }}`
19+
🛠 Merged by: `${{ github.actor }}`
20+
🚀 PR Title: `${{ github.event.pull_request.title }}`
21+
📝 PR Description: `${{ github.event.pull_request.body }}`
22+
🔗 PR URL: ${{ github.event.pull_request.html_url }}
23+
SLACK_USERNAME: "GitHub Actions"
24+
SLACK_ICON_EMOJI: ":white_check_mark:"

spring-boot/src/main/resources/application.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ spring:
1414
properties:
1515
hibernate.format_sql: true
1616

17-
1817
flyway:
1918
enabled: true
2019
baseline-on-migrate: true

0 commit comments

Comments
 (0)