Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Exclude Dependabot and sync PRs from notifications (#102)
Dhruv Bhanushalib27466f7bdc8
diff --git a/.github/GITHUB.md b/.github/GITHUB.mdindex 8d7f81740..c11f78451 100644--- a/.github/GITHUB.md+++ b/.github/GITHUB.md@@ -68,6 +68,7 @@ be reviewed manually and then published.### New PR notificationThis workflow makes a `POST` request to the Slack webhook when a new PR is-created, sending a notification message to the `#openverse` channel.+created, sending a notification message to the `#openverse` channel. This ping+is not sent for PRs made by Dependabot and downstream sync action.**PR:** openeddiff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.ymlindex 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-lateststeps:- 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 }}