[AN/USER] feat: νμ μΈμ¦ API μ°λ(#456) #210
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Opened PR Notification | |
on: | |
pull_request: | |
branches: | |
- dev | |
- main | |
types: | |
- opened | |
jobs: | |
create-issue: | |
name: PR opened notification to slack | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send opened PR notification | |
uses: slackapi/[email protected] | |
with: | |
payload: | | |
{ | |
"text": "*μλ‘μ΄ PRμ΄ μμ±λμμ΅λλ€!*", | |
"attachments": [ | |
{ | |
"color": "#1F7629", | |
"blocks": [ | |
{ | |
"type": "section", | |
"text": { | |
"type": "mrkdwn", | |
"text": "*Title*\n<${{ github.event.pull_request.html_url }}|${{ github.event.pull_request.title }}>" | |
} | |
}, | |
{ | |
"type": "section", | |
"fields": [ | |
{ | |
"type": "mrkdwn", | |
"text": "*Base branch*\n${{ github.base_ref }}" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*Compare branch*\n${{ github.head_ref }}" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*PR number*\n#${{ github.event.pull_request.number }}" | |
}, | |
{ | |
"type": "mrkdwn", | |
"text": "*Author*\n${{ github.event.pull_request.user.login }}" | |
} | |
] | |
} | |
] | |
} | |
] | |
} | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_PR_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |