You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
PR labels checker
v2.1
Github Action to check if a PR's labels pass the specified rules
hasSome
: Comma separated list of labels, PR needs at least of themhasAll
: Comma separated list of labels, PR needs all of themhasNone
: Comma separated list of labels, PR must not have any of themhasNotAll
: Comma separated list of labels, PR must not have all of them
passed
: boolean
name: Labels Check
on:
pull_request:
types: [opened, edited, labeled, unlabeled, synchronize]
jobs:
QA-check:
if: github.base_ref == 'master'
runs-on: ubuntu-latest
steps:
- uses: danielchabr/pr-has-one-of-labels@master
id: checkLabel
with:
hasSome: QA:tested,QA:skipped
Do_not_merge-check:
if: github.base_ref == 'master'
runs-on: ubuntu-latest
steps:
- uses: danielchabr/pr-has-one-of-labels@master
id: checkLabel
with:
hasNone: do not merge,blocked