| 1 |
name: Close master-targeted PRs |
| 2 |
on: |
| 3 |
pull_request_target: |
| 4 |
types: [opened] |
| 5 |
branches: |
| 6 |
- 'master' |
| 7 |
|
| 8 |
permissions: |
| 9 |
contents: read |
| 10 |
|
| 11 |
jobs: |
| 12 |
run: |
| 13 |
permissions: |
| 14 |
pull-requests: write |
| 15 |
runs-on: ubuntu-latest |
| 16 |
steps: |
| 17 |
- name: Harden Runner |
| 18 |
uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 |
| 19 |
with: |
| 20 |
egress-policy: audit |
| 21 |
|
| 22 |
- name: Close PRs |
| 23 |
uses: superbrothers/close-pull-request@9c18513d320d7b2c7185fb93396d0c664d5d8448 |
| 24 |
with: |
| 25 |
comment: "Thank you for your contribution, but PRs must be raised against the `dev` branch. Please log your pull request against the `dev` branch not `master`. You can also retarget this pull request, then reopen it." |
| 26 |
|