mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-13 23:44:55 +01:00
Forbid PRs from modifying certain files
This commit is contained in:
23
.github/workflows/protect_files.yml
vendored
Normal file
23
.github/workflows/protect_files.yml
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Protect write-access files from being PR'd
|
||||
|
||||
on:
|
||||
pull_request_target:
|
||||
types:
|
||||
- opened
|
||||
- reopened
|
||||
branches:
|
||||
- development
|
||||
paths:
|
||||
- '.github/'
|
||||
- '.editorconfig'
|
||||
- 'CODE_OF_CONDUCT.md'
|
||||
- 'CONTRIBUTING.md'
|
||||
- 'LICENSE'
|
||||
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: superbrothers/close-pull-request@v3
|
||||
with:
|
||||
comment: "This PR has been closed for modifying protected files. See `CONTIBUTING.md` for more information."
|
||||
Reference in New Issue
Block a user