Skip to content

Commit

Permalink
Consistent mergability formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-noland authored and qmonnet committed Nov 12, 2024
1 parent 4e1ea4b commit 04bf273
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/mergeability.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Block Pull Request merge (by failing the check) if specific labels are set.

name: Mergeability
name: "mergeability.yml"

on:
pull_request:
types: [synchronize, opened, reopened, labeled, unlabeled]

jobs:
check-labels:
runs-on: ubuntu-latest
name: Check mergeability based on labels
runs-on: "ubuntu-latest"
name: "Check mergeability based on labels"
steps:
- if: ${{ contains(github.event.*.labels.*.name, 'dont-merge') }}
name: Fail test due to 'dont-merge' label presence
run: exit 1
- name: Allow merging
run: exit 0
name: "Fail test due to 'dont-merge' label presence"
run: |
exit 1
- name: "Allow merging"
run: |
exit 0

0 comments on commit 04bf273

Please sign in to comment.