-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (23 loc) · 909 Bytes
/
readonly.yaml
File metadata and controls
28 lines (23 loc) · 909 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Readonly
on:
pull_request_target:
types: [opened]
permissions: {}
jobs:
run:
runs-on: ubuntu-latest
permissions:
pull-requests: write # Required to comment on and close the PR.
steps:
- name: Close pull request
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.pull_request.number }}
COMMENT: |
Thanks for your contribution! We love it & really appreciate your effort!
However, you should instead open your PR on the main monorepo repository:
https://github.com/flow-php/flow
This repository is what we call a "subtree split": a read-only subset of that main monorepo repository.
We're looking forward to your PR there!
run: gh pr close "$PR_NUMBER" --comment "$COMMENT"