Merge pull request #11802 from AUTOMATIC1111/warns-merge-into-master
Warns merge into master
This commit is contained in:
commit
d2e64e26e5
19
.github/workflows/warns_merge_master.yml
vendored
Normal file
19
.github/workflows/warns_merge_master.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Pull requests can't target master branch
|
||||||
|
|
||||||
|
"on":
|
||||||
|
pull_request:
|
||||||
|
types:
|
||||||
|
- opened
|
||||||
|
- synchronize
|
||||||
|
- reopened
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Warning marge into master
|
||||||
|
run: |
|
||||||
|
echo -e "::warning::This pull request directly merge into \"master\" branch, normally development happens on \"dev\" branch."
|
||||||
|
exit 1
|
Loading…
Reference in New Issue
Block a user