From 756548bc8d81e4dfdfaf4eb4a423da63f11c3de3 Mon Sep 17 00:00:00 2001 From: Sebastian Villena <97059974+ruisebas@users.noreply.github.com> Date: Wed, 27 Dec 2023 16:46:17 -0500 Subject: [PATCH] chore: Removing unnecessary workflow file [skip ci] (#3436) --- .github/workflows/notify_issue_comment.yml | 34 ---------------------- 1 file changed, 34 deletions(-) delete mode 100644 .github/workflows/notify_issue_comment.yml diff --git a/.github/workflows/notify_issue_comment.yml b/.github/workflows/notify_issue_comment.yml deleted file mode 100644 index b5b2990913..0000000000 --- a/.github/workflows/notify_issue_comment.yml +++ /dev/null @@ -1,34 +0,0 @@ -# This is a basic workflow to help you get started with Actions - -name: Notify Comments on Issues - -# Controls when the workflow will run -on: - # Triggers the workflow on comment events on pending response issues - issue_comment: - types: [created] - -# Limit the GITHUB_TOKEN permissions -permissions: {} - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -jobs: - # This workflow contains a single job called "notify" - notify: - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Exclude comments in PRs and comments made from maintainers - if: ${{ !github.event.issue.pull_request && !contains(fromJSON('["MEMBER", "OWNER"]'), github.event.comment.author_association) }} - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Runs a single command using the runners shell - - name: Run webhook curl command - env: - WEBHOOK_URL: ${{ secrets.SLACK_COMMENT_WEBHOOK_URL }} - COMMENT: ${{toJson(github.event.comment.body)}} - USER: ${{github.event.comment.user.login}} - COMMENT_URL: ${{github.event.comment.html_url}} - shell: bash - run: echo $COMMENT | sed "s/\\\n/. /g; s/\\\r//g; s/[^a-zA-Z0-9 &().,:]//g" | xargs -I {} curl -s POST "$WEBHOOK_URL" -H "Content-Type:application/json" --data '{"comment":"{}", "commentUrl":"'$COMMENT_URL'", "user":"'$USER'"}'