Skip to content

Commit 5ad725b

Browse files
joon-wonJoonWon Choi
andauthored
chore(all): Modifed the setting to notify all comments update (#3574)
* Modifed the setting to notify all comments update * Added Environmental Variable --------- Co-authored-by: JoonWon Choi <[email protected]>
1 parent 3e45ea6 commit 5ad725b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/notify_comments.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
# The type of runner that the job will run on
1616
runs-on: ubuntu-latest
1717

18-
if: ${{ !github.event.issue.pull_request && (github.event.issue.state == 'closed' || contains(github.event.issue.labels.*.name, 'pending-response') || contains(github.event.issue.labels.*.name, 'closing-soon-if-no-response')) }}
18+
if: ${{ !github.event.issue.pull_request }}
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
@@ -25,5 +25,6 @@ jobs:
2525
WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }}
2626
BODY: ${{ toJson(github.event.comment.body) }}
2727
COMMENT_URL: ${{ github.event.comment.html_url }}
28+
USER: ${{ github.event.comment.user.login }}
2829
shell: bash
29-
run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"'$COMMENT_URL'", "body":"{}"}'
30+
run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"issue":"'$COMMENT_URL'", "body":"{}", "user":"'$USER'"}'

0 commit comments

Comments
 (0)