Skip to content

Custom ESLint plugin to Skip Unit Tests if Preceded by Comment with Github Issue Link #7627

Custom ESLint plugin to Skip Unit Tests if Preceded by Comment with Github Issue Link

Custom ESLint plugin to Skip Unit Tests if Preceded by Comment with Github Issue Link #7627

Workflow file for this run

name: PR label check
# ℹ️ https://github.com/WordPress/openverse/blob/main/.github/GITHUB.md#pr-label-check
on:
pull_request:
types:
# Default types
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
- opened
- reopened
- synchronize
# Label is changed
- labeled
- unlabeled
jobs:
# Extract the current label list by group
get_label_groups:
name: Get label groups
runs-on: ubuntu-latest
outputs:
aspect: ${{ steps.get_groups.outputs.aspect }}
goal: ${{ steps.get_groups.outputs.goal }}
priority: ${{ steps.get_groups.outputs.priority }}
stack: ${{ steps.get_groups.outputs.stack }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Get label groups
id: get_groups
env:
PYTHONPATH: ${{ github.workspace }}/automations/python
working-directory: automations/python/workflows
run: python get_label_groups.py
# List of aspect labels: https://github.com/WordPress/openverse/labels?q=aspect
check_aspect_label:
name: Check aspect label
runs-on: ubuntu-latest
needs:
- get_label_groups
steps:
- name: Check aspect label
uses: docker://agilepathway/pull-request-label-checker:v1.4.30
with:
one_of: ${{ needs.get_label_groups.outputs.aspect }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
# List of goal labels: https://github.com/WordPress/openverse/labels?q=goal
check_goal_label:
name: Check goal label
runs-on: ubuntu-latest
needs:
- get_label_groups
steps:
- name: Check goal label
uses: docker://agilepathway/pull-request-label-checker:v1.4.30
with:
one_of: ${{ needs.get_label_groups.outputs.goal }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
# List of priority labels: https://github.com/WordPress/openverse/labels?q=priority
check_priority_label:
name: Check priority label
runs-on: ubuntu-latest
needs:
- get_label_groups
steps:
- name: Check priority label
uses: docker://agilepathway/pull-request-label-checker:v1.4.30
with:
one_of: ${{ needs.get_label_groups.outputs.priority }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
# List of stack labels: https://github.com/WordPress/openverse/labels?q=stack
check_stack_label:
name: Check stack label
runs-on: ubuntu-latest
needs:
- get_label_groups
steps:
- name: Check stack label
uses: docker://agilepathway/pull-request-label-checker:v1.4.30
with:
any_of: ${{ needs.get_label_groups.outputs.stack }}
repo_token: ${{ secrets.GITHUB_TOKEN }}