Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
🔄 Synced file(s) with WordPress/openverse (#255)
Dhruv Bhanushali9367dc18f235
diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.ymlnew file mode 100644index 000000000..d809a7a8a--- /dev/null+++ b/.github/workflows/pr_ping.yml@@ -0,0 +1,27 @@+name: New PR notification+# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#new-pr-notification++on:+ pull_request_target:+ types:+ - opened++jobs:+ send_message:+ name: Send message+ if: ${{ !github.event.pull_request.draft }}+ runs-on: ubuntu-latest+ steps:+ - name: Send Slack notification+ run: |+ curl \+ $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_title"'>"}}]}'+ env:+ slack_url: ${{ secrets.SLACK_WEBHOOK_URL }}+ pr_url: ${{ github.event.pull_request.html_url }}+ pr_title: ${{ github.event.pull_request.title }}+ pr_author: ${{ github.event.pull_request.user.login }}+ pr_repo: ${{ github.event.pull_request.repo.full_name }}