Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

🔄 Synced file(s) with WordPress/openverse (#351)

Dhruv Bhanushalie30bc0de9727
diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.yml
index a12020df2..84840fb1b 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 }}