Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
π Synced file(s) with WordPress/openverse (#403)
Dhruv Bhanushali7f19de2a9d18
diff --git a/.github/workflows/label_new_pr.yml b/.github/workflows/label_new_pr.ymlnew file mode 100644index 000000000..c0b97e01b--- /dev/null+++ b/.github/workflows/label_new_pr.yml@@ -0,0 +1,27 @@+name: Label new PR+# βΉοΈ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#label-new-pr++on:+ pull_request:+ types:+ # Only set labels when the PR is created, this should fire `labeled`+ # events that will trigger the checks defined in `pr_label_check.yml`.+ - opened++jobs:+ set_label:+ name: Set labels+ runs-on: ubuntu-latest+ steps:+ - name: Trigger remote workflow+ uses: felixp8/[email protected]+ env:+ PR_URL: ${{ github.event.pull_request.html_url }}+ with:+ owner: WordPress+ repo: openverse+ token: ${{ secrets.ACCESS_TOKEN }}+ event_type: label_pr+ client_payload: ${{ format('{{"pr_url":"{0}"}}', env.PR_URL) }}+ wait_time: 5 # check every 5 seconds+ max_time: 120 # timeout after 2 minutesdiff --git a/.github/workflows/pr_label_check.yml b/.github/workflows/pr_label_check.ymlindex 9951bae5b..911a53fed 100644--- a/.github/workflows/pr_label_check.yml+++ b/.github/workflows/pr_label_check.yml@@ -4,11 +4,8 @@ name: PR label checkon:pull_request:types:- - opened- - edited- labeled- unlabeled- - synchronizejobs:check_aspect_label:@@ -18,7 +15,7 @@ jobs:- name: Check aspect labeluses: sugarshin/[email protected]with:- required_oneof: "π» aspect: code,π aspect: text,π€ aspect: dx,πΉ aspect: interface,βΏοΈ aspect: a11y"+ required_oneof: "π¦ status: awaiting triage,π» aspect: code,π aspect: text,π€ aspect: dx,πΉ aspect: interface,βΏοΈ aspect: a11y"check_goal_label:name: Check goal label@@ -27,7 +24,7 @@ jobs:- name: Check goal labeluses: sugarshin/[email protected]with:- required_oneof: "π goal: addition,π goal: fix,β¨ goal: improvement,π§° goal: internal improvement"+ required_oneof: "π¦ status: awaiting triage,π goal: addition,π goal: fix,β¨ goal: improvement,π§° goal: internal improvement"check_priority_label:name: Check priority label@@ -36,4 +33,4 @@ jobs:- name: Check priority labeluses: sugarshin/[email protected]with:- required_oneof: "π© priority: low,π¨ priority: medium,π§ priority: high,π₯ priority: critical"+ required_oneof: "π¦ status: awaiting triage,π© priority: low,π¨ priority: medium,π§ priority: high,π₯ priority: critical"