Skip to content

Switch on prefer-screen-queries & no-render-in-lifecycle [THC-387] #10

Switch on prefer-screen-queries & no-render-in-lifecycle [THC-387]

Switch on prefer-screen-queries & no-render-in-lifecycle [THC-387] #10

name: 'PR Open'
on:
pull_request:
branches:
- main
types:
- opened
jobs:
check-labels:
name: 'Check PR Labels'
runs-on: ubuntu-latest
permissions:
pull-requests: write
outputs:
status: ${{ steps.labels.outputs.status }}
steps:
- id: labels
uses: mheap/github-action-required-labels@v5
with:
mode: exactly
count: 1
labels: 'major, minor, patch'
exit_type: success
add-label:
name: 'Add Default Label'
needs: check-labels
runs-on: ubuntu-latest
if: needs.check_labels.outputs.status == 'failure'
steps:
- name: Add Default Label
uses: actions-ecosystem/action-add-labels@v1
with:
labels: 'minor'