diff --git a/.github/workflows/issue_comment.yml b/.github/workflows/issue_comment.yml index 2ebed99ba..4c0192156 100644 --- a/.github/workflows/issue_comment.yml +++ b/.github/workflows/issue_comment.yml @@ -8,15 +8,16 @@ jobs: notify: runs-on: ubuntu-latest permissions: {} - if: ${{ !github.event.issue.pull_request && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} + if: ${{ !github.event.issue.pull_request }} steps: - name: Run webhook curl command env: WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }} BODY: ${{ toJson(github.event.comment.body) }} - COMMENT_URL: ${{github.event.comment.html_url}} + COMMENT_URL: ${{ github.event.comment.html_url }} + USER: ${{ github.event.comment.user.login }} shell: bash - run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"body":"{}", "issue":"'$COMMENT_URL'"}' + run: echo $BODY | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"body":"{}", "issue":"'$COMMENT_URL'", "user":"'$USER'"}' remove-pending-response-label: runs-on: ubuntu-latest