Skip to content

ci: Add workflow to prevent merging PRs with 'dont-merge' label #4

ci: Add workflow to prevent merging PRs with 'dont-merge' label

ci: Add workflow to prevent merging PRs with 'dont-merge' label #4

Workflow file for this run

name: Mergeability
on:
pull_request:
types: [opened, reopened, labeled, unlabeled]
jobs:
check-labels:
runs-on: ubuntu-latest
name: Allow merging
if: ${{ contains(github.event.*.labels.*.name, 'dont-merge') }}
steps:
- name: Fail test due to 'dont-merge' label presence
run: exit 1