Skip to content

Introduce ExpressionTypeUnion to narrow down expression variables to json types #913

Introduce ExpressionTypeUnion to narrow down expression variables to json types

Introduce ExpressionTypeUnion to narrow down expression variables to json types #913

name: "Label Check"
on:
pull_request:
types: [opened, edited, labeled, unlabeled, synchronize]
jobs:
check-label:
runs-on: ubuntu-latest
steps:
- name: Check labels
uses: actions/github-script@v7
with:
script: |
const labels = context.payload.pull_request.labels;
const releaseLabels = ["ignore-for-release", "breaking-change", "feature", "bugfix", "dependency", "other"];
if(!releaseLabels.some(r=>labels.some(l=>l.name == r))){
core.setFailed(`The PR must have at least one of these labels: ${releaseLabels}`)
}