From dd3c58bd5e560a097df714db8a85c6b4d6a965bb Mon Sep 17 00:00:00 2001 From: dhruvkb Date: Mon, 25 Oct 2021 18:28:04 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=84=20Synced=20local=20'.github/workfl?= =?UTF-8?q?ows/pr=5Fping.yml'=20with=20remote=20'.github/workflows/pr=5Fpi?= =?UTF-8?q?ng.yml'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/pr_ping.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.yml index a12020df28..84840fb1b9 100644 --- a/.github/workflows/pr_ping.yml +++ b/.github/workflows/pr_ping.yml @@ -9,6 +9,9 @@ on: jobs: send_message: name: Send message + if: | + ${{ github.event.pull_request.user.login != "dependabot[bot]" }} && + ${{ !startsWith(github.event.pull_request.title, "🔄") }} runs-on: ubuntu-latest steps: - name: Send Slack notification @@ -17,7 +20,7 @@ jobs: $slack_url \ -X POST \ -H 'Content-Type: application/json' \ - -d '{"blocks": [{"type":"section","text":{"type":"mrkdwn","text":":pull-request: New PR by *'"$pr_author"'* in `'"$pr_repo"'`:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}' + -d '{"text":"New PR by '"$pr_author"' in '"$pr_repo"': #'"$pr_number"' - '"$pr_title"'","blocks":[{"type":"section","text":{"type":"mrkdwn","text":":pull-request: New PR by *'"$pr_author"'* in `'"$pr_repo"'`:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}' env: slack_url: ${{ secrets.SLACK_WEBHOOK_URL }} pr_url: ${{ github.event.pull_request.html_url }}