2023-07-28 20:15:18 +02:00
|
|
|
name: "Check PR has required labels"
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
2023-08-01 23:06:59 +02:00
|
|
|
- develop
|
2023-07-28 20:15:18 +02:00
|
|
|
types:
|
|
|
|
- opened
|
|
|
|
- reopened
|
|
|
|
- synchronize
|
|
|
|
- labeled
|
|
|
|
- unlabeled
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
check-pr-labels:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
pull-requests: read
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0 # This is needed to checkout all branches
|
|
|
|
|
|
|
|
- name: Set up Node.js
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version-file: '.nvmrc'
|
|
|
|
cache: yarn
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn --immutable
|
|
|
|
|
|
|
|
- name: Check PR has required labels
|
|
|
|
id: check-pr-has-required-labels
|
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-08-18 17:57:04 +02:00
|
|
|
run: yarn run check-pr-has-required-labels
|