Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
π Synced file(s) with WordPress/openverse (#314)
Dhruv Bhanushali8fc29a2281db
diff --git a/.github/workflows/new_issues.yml b/.github/workflows/new_issues.ymlindex 0b0deb30c..ddeaae3b5 100644--- a/.github/workflows/new_issues.yml+++ b/.github/workflows/new_issues.yml@@ -4,16 +4,16 @@ name: New issue automationon:issues:types:- - opened+ - openedjobs:add_issue:name: Add new issueruns-on: ubuntu-lateststeps:- - name: Add issue to "Backlog"- uses: alex-page/[email protected]- with:- project: Openverse- column: Backlog- repo-token: ${{ secrets.ACCESS_TOKEN }}+ - name: Add issue to "Backlog"+ uses: alex-page/[email protected]+ with:+ project: Openverse+ column: Backlog+ repo-token: ${{ secrets.ACCESS_TOKEN }}diff --git a/.github/workflows/new_prs.yml b/.github/workflows/new_prs.ymlindex b1d32d0d1..98e27ceb9 100644--- a/.github/workflows/new_prs.yml+++ b/.github/workflows/new_prs.yml@@ -4,9 +4,9 @@ name: New PR automationon:pull_request_target:types:- - opened- - converted_to_draft- - ready_for_review+ - opened+ - converted_to_draft+ - ready_for_reviewjobs:add_draft:@@ -14,21 +14,21 @@ jobs:if: ${{ github.event.pull_request.draft }}runs-on: ubuntu-lateststeps:- - name: Add PR to "In progress"- uses: alex-page/[email protected]- with:- project: Openverse PRs- column: In progress- repo-token: ${{ secrets.ACCESS_TOKEN }}+ - name: Add PR to "In progress"+ uses: alex-page/[email protected]+ with:+ project: Openverse PRs+ column: In progress+ repo-token: ${{ secrets.ACCESS_TOKEN }}add_ready:name: Add ready PRif: ${{ !github.event.pull_request.draft }}runs-on: ubuntu-lateststeps:- - name: Add PR to "Needs review"- uses: alex-page/[email protected]- with:- project: Openverse PRs- column: Needs review- repo-token: ${{ secrets.ACCESS_TOKEN }}+ - name: Add PR to "Needs review"+ uses: alex-page/[email protected]+ with:+ project: Openverse PRs+ column: Needs review+ repo-token: ${{ secrets.ACCESS_TOKEN }}diff --git a/.github/workflows/pr_label_check.yml b/.github/workflows/pr_label_check.ymlindex a01b96e69..9951bae5b 100644--- a/.github/workflows/pr_label_check.yml+++ b/.github/workflows/pr_label_check.yml@@ -4,36 +4,36 @@ name: PR label checkon:pull_request:types:- - opened- - edited- - labeled- - unlabeled- - synchronize+ - opened+ - edited+ - labeled+ - unlabeled+ - synchronizejobs:check_aspect_label:name: Check aspect labelruns-on: ubuntu-lateststeps:- - name: Check aspect label- uses: sugarshin/[email protected]- with:- required_oneof: 'π» aspect: code,π aspect: text,π€ aspect: dx,πΉ aspect: interface,βΏοΈ aspect: a11y'+ - name: Check aspect label+ uses: sugarshin/[email protected]+ with:+ required_oneof: "π» aspect: code,π aspect: text,π€ aspect: dx,πΉ aspect: interface,βΏοΈ aspect: a11y"check_goal_label:name: Check goal labelruns-on: ubuntu-lateststeps:- - name: Check goal label- uses: sugarshin/[email protected]- with:- required_oneof: 'π goal: addition,π goal: fix,β¨ goal: improvement,π§° goal: internal improvement'+ - name: Check goal label+ uses: sugarshin/[email protected]+ with:+ required_oneof: "π goal: addition,π goal: fix,β¨ goal: improvement,π§° goal: internal improvement"check_priority_label:name: Check priority labelruns-on: ubuntu-lateststeps:- - name: Check priority label- uses: sugarshin/[email protected]- with:- required_oneof: 'π© priority: low,π¨ priority: medium,π§ priority: high,π₯ priority: critical'+ - name: Check priority label+ uses: sugarshin/[email protected]+ with:+ required_oneof: "π© priority: low,π¨ priority: medium,π§ priority: high,π₯ priority: critical"diff --git a/.github/workflows/pr_ping.yml b/.github/workflows/pr_ping.ymlindex e34a1d6d7..500dfecd3 100644--- a/.github/workflows/pr_ping.yml+++ b/.github/workflows/pr_ping.yml@@ -4,8 +4,8 @@ name: New PR notificationon:pull_request_target:types:- - opened- - ready_for_review+ - opened+ - ready_for_reviewjobs:send_message:@@ -22,23 +22,23 @@ jobs:pr_author: ${{ github.event.pull_request.user.login }}pr_repo: ${{ github.event.pull_request.base.repo.full_name }}steps:- - name: Send notification for new PR- if: github.event.action == 'opened'- env:- pr_status: ${{ github.event.pull_request.draft && ' draft ' || ' ' }}- pr_icon: ${{ github.event.pull_request.draft && ':pr-draft:' || ':pull-request:' }}- run: |- curl \- $slack_url \- -X POST \- -H 'Content-Type: application/json' \- -d '{"text":"New'"$pr_status"'PR opened by '"$pr_author"' in '"$pr_repo"': #'"$pr_number"' - '"$pr_title"'","blocks":[{"type":"section","text":{"type":"mrkdwn","text":"'"$pr_icon"' New'"$pr_status"'PR opened by *'"$pr_author"'* in `'"$pr_repo"'`:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}'+ - name: Send notification for new PR+ if: github.event.action == 'opened'+ env:+ pr_status: ${{ github.event.pull_request.draft && ' draft ' || ' ' }}+ pr_icon: ${{ github.event.pull_request.draft && ':pr-draft:' || ':pull-request:' }}+ run: |+ curl \+ $slack_url \+ -X POST \+ -H 'Content-Type: application/json' \+ -d '{"text":"New'"$pr_status"'PR opened by '"$pr_author"' in '"$pr_repo"': #'"$pr_number"' - '"$pr_title"'","blocks":[{"type":"section","text":{"type":"mrkdwn","text":"'"$pr_icon"' New'"$pr_status"'PR opened by *'"$pr_author"'* in `'"$pr_repo"'`:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}'- - name: Send notification for PR marked ready- if: github.event.action == 'ready_for_review'- run: |- curl \- $slack_url \- -X POST \- -H 'Content-Type: application/json' \- -d '{"text":"PR by '"$pr_author"' in '"$pr_repo"' marked ready for review: #'"$pr_number"' - '"$pr_title"'","blocks":[{"type":"section","text":{"type":"mrkdwn","text":":pull-request: PR by *'"$pr_author"'* in `'"$pr_repo"'` marked ready for review:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}'+ - name: Send notification for PR marked ready+ if: github.event.action == 'ready_for_review'+ run: |+ curl \+ $slack_url \+ -X POST \+ -H 'Content-Type: application/json' \+ -d '{"text":"PR by '"$pr_author"' in '"$pr_repo"' marked ready for review: #'"$pr_number"' - '"$pr_title"'","blocks":[{"type":"section","text":{"type":"mrkdwn","text":":pull-request: PR by *'"$pr_author"'* in `'"$pr_repo"'` marked ready for review:\n<'"$pr_url"'|#'"$pr_number"' - '"$pr_title"'>"}}]}'