1.0.1+15 #156
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Prevent Merge of Draft PRs | |
on: | |
pull_request: | |
types: | |
- synchronize | |
- opened | |
- labeled | |
jobs: | |
prevent_merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR is a draft | |
run: | | |
if [ "${{ github.event.pull_request.draft }}" == "true" ]; then | |
echo "Draft PRs are not allowed to be merged." | |
exit 1 | |
fi |