Skip to content

Commit bb5a459

Browse files
committed
Create pr_notif.yml
1 parent 38d417e commit bb5a459

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/pr_notif.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: 'PR Notifications'
2+
3+
on:
4+
# Trigger the workflow on push or pull request
5+
pull_request:
6+
branches:
7+
- 2.1.x
8+
9+
jobs:
10+
comment:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/github-script@v6
14+
with:
15+
script: |
16+
github.rest.issues.createComment({
17+
issue_number: context.issue.number,
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
body: 'This branch does not take new feature, only bugfix, if your PR is a new feature please push it to 3.0 instead, thank you'
21+
})

0 commit comments

Comments
 (0)