Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/pr-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: PR Analysis
on:
pull_request:
types: [opened, synchronize, labeled, unlabeled]
permissions:
contents: read
pull-requests: read
jobs:
allowed-labels:
runs-on: ubuntu-latest
steps:
- name: Return error if branch is in lockdown or 'do not merge' label is present
run: echo "Labels on this PR prevent it from being merged. Please contact the repo owners for more information." && exit 1
if: ${{ contains(github.event.pull_request.labels.*.name, 'Branch Lockdown') || contains(github.event.pull_request.labels.*.name, 'DO NOT MERGE') }}