Skip to content

Nominate chandler-solo as maintainer #26

Nominate chandler-solo as maintainer

Nominate chandler-solo as maintainer #26

Workflow file for this run

# This workflow blocks PRs from merging if they have certain labels.
name: Pre-merge label checker
on:
pull_request:
types: [opened, edited, reopened, synchronize, labeled, unlabeled]
jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- name: Check for labels that should block merge
env:
PR_LABELS: ${{ toJson(github.event.pull_request.labels) }}
run: |
echo "$PR_LABELS" | jq -r '.[].name' | while read -r label; do
if [[ "$label" == "do-not-merge"* ]]; then
echo "Pull request has 'do-not-merge' label. Blocking merge."
exit 1
fi
done