From 6959d5492f5765bc36feba5b6c9dd7cbd6c6d77f Mon Sep 17 00:00:00 2001 From: Rafal Paradowski Date: Tue, 3 Dec 2024 12:52:33 +0100 Subject: [PATCH] Use notify_team_new_comment workflow action from .github repo --- .github/workflows/notify_team_new_comment.yml | 30 ++----------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/.github/workflows/notify_team_new_comment.yml b/.github/workflows/notify_team_new_comment.yml index 6b6c1e21d7..07a837e4d3 100644 --- a/.github/workflows/notify_team_new_comment.yml +++ b/.github/workflows/notify_team_new_comment.yml @@ -6,30 +6,6 @@ on: jobs: contributor_issue_comment: - name: Contributor issue comment - - if: >- - ${{ - !github.event.issue.pull_request && - github.event.comment.author_association != 'MEMBER' && - github.event.comment.author_association != 'OWNER' - }} - - runs-on: ubuntu-latest - steps: - - name: Escape title double quotes - id: escape_title - env: - ISSUE_TITLE: ${{ github.event.issue.title }} - run: echo "ISSUE_TITLE=${ISSUE_TITLE//\"/\\\"}" >> "$GITHUB_OUTPUT" - - - name: Send message to Slack channel - env: - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} - SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK - uses: slackapi/slack-github-action@v1.27.0 - with: - payload: | - { - "text": "*[Studio] New comment on issue: <${{ github.event.issue.html_url }}#issuecomment-${{ github.event.comment.id }}|${{ steps.escape_title.outputs.ISSUE_TITLE }} by ${{ github.event.comment.user.login }}>*" - } + uses: learningequality/.github/.github/workflows/notify_team_new_comment.yml@main + secrets: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}