warns_merge_master.yml

This commit is contained in:
FAIZ NADEEM 2024-08-27 15:37:56 +05:00 committed by GitHub
parent 82a973c043
commit 4c3826baf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,19 +1,20 @@
name: Pull requests can't target master branch
"on":
name: Warn Against Merging to Master
on:
pull_request: pull_request:
types:
- opened
- synchronize
- reopened
branches: branches:
- master - master
jobs: jobs:
check: prevent-master-merge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Warning marge into master - name: Check Pull Request Target
run: | run: |
echo -e "::warning::This pull request directly merge into \"master\" branch, normally development happens on \"dev\" branch." echo "Warning: You are trying to merge into the master branch."
exit 1 exit 1