-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
93d8aee
commit a8f541b
Showing
7 changed files
with
120 additions
and
106 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ on: | |
pull_request: | ||
branches: | ||
- dev | ||
- main | ||
paths: 'backend/**' | ||
|
||
defaults: | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
name: Closed Issue Notification | ||
on: | ||
issues: | ||
types: [closed] | ||
|
||
issues: | ||
types: | ||
- closed | ||
|
||
jobs: | ||
create-issue: | ||
create-issue: | ||
name: Send closed issue notification to slack | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Issue | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
text: "*이슈가 닫혔습니다!*", | ||
attachments: [{ | ||
fallback: 'fallback', | ||
color: '#7539DE', | ||
title: 'Title', | ||
text: '<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>', | ||
fields: [{ | ||
title: 'Issue number', | ||
value: '#${{ github.event.issue.number }}', | ||
short: true | ||
}, | ||
{ | ||
title: 'Author', | ||
value: '${{ github.event.issue.user.login }}', | ||
short: true | ||
}], | ||
actions: [{ | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Issue | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
text: "*이슈가 닫혔습니다!*", | ||
attachments: [{ | ||
fallback: 'fallback', | ||
color: '#7539DE', | ||
title: 'Title', | ||
text: '<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>', | ||
fields: [{ | ||
title: 'Issue number', | ||
value: '#${{ github.event.issue.number }}', | ||
short: true | ||
}, | ||
{ | ||
title: 'Author', | ||
value: '${{ github.event.issue.user.login }}', | ||
short: true | ||
}], | ||
actions: [{ | ||
}] | ||
}] | ||
}] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} | ||
if: always() | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} | ||
if: always() |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,40 @@ | ||
name: Opend Issue Notification | ||
on: | ||
issues: | ||
types: [opened] | ||
|
||
issues: | ||
types: | ||
- opened | ||
|
||
jobs: | ||
create-issue: | ||
create-issue: | ||
name: Send opend issue notification to slack | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Issue | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
text: "*새로운 이슈가 생성되었습니다!*", | ||
attachments: [{ | ||
fallback: 'fallback', | ||
color: '#1F7629', | ||
title: 'Title', | ||
text: '<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>', | ||
fields: [{ | ||
title: 'Issue number', | ||
value: '#${{ github.event.issue.number }}', | ||
short: true | ||
}, | ||
{ | ||
title: 'Author', | ||
value: '${{ github.event.issue.user.login }}', | ||
short: true | ||
}], | ||
actions: [{ | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Send Issue | ||
uses: 8398a7/action-slack@v3 | ||
with: | ||
status: custom | ||
custom_payload: | | ||
{ | ||
text: "*새로운 이슈가 생성되었습니다!*", | ||
attachments: [{ | ||
fallback: 'fallback', | ||
color: '#1F7629', | ||
title: 'Title', | ||
text: '<${{ github.event.issue.html_url }}|${{ github.event.issue.title }}>', | ||
fields: [{ | ||
title: 'Issue number', | ||
value: '#${{ github.event.issue.number }}', | ||
short: true | ||
}, | ||
{ | ||
title: 'Author', | ||
value: '${{ github.event.issue.user.login }}', | ||
short: true | ||
}], | ||
actions: [{ | ||
}] | ||
}] | ||
}] | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} | ||
if: always() | ||
} | ||
env: | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_ISSUE_WEBHOOK_URL }} | ||
if: always() |
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