Skip to content

Commit e63b823

Browse files
committed
Workflow: Base PR on previous branch
1 parent 800429b commit e63b823

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
2+
3+
name: "Base PR on previous branch"
4+
5+
on:
6+
pull_request_target:
7+
types:
8+
- opened
9+
branches:
10+
- '1.11.x'
11+
12+
13+
jobs:
14+
comment:
15+
name: "Comment on pull request"
16+
runs-on: 'ubuntu-latest'
17+
18+
steps:
19+
- name: Comment PR
20+
uses: peter-evans/create-or-update-comment@v2
21+
with:
22+
body: "You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x."
23+
token: ${{ secrets.PHPSTAN_BOT_TOKEN }}
24+
issue-number: ${{ github.event.pull_request.number }}

0 commit comments

Comments
 (0)