Skip to content

Commit ac4a041

Browse files
authored
Automatically comment on PRs needing squash
1 parent 990b5a8 commit ac4a041

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Add comment
2+
on:
3+
pull_request:
4+
types:
5+
- labeled
6+
jobs:
7+
add-comment:
8+
if: github.event.label.name == 'SQUASH'
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
steps:
13+
- name: Add comment
14+
run: gh issue comment "$NUMBER" --body "$BODY"
15+
env:
16+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
GH_REPO: ${{ github.repository }}
18+
NUMBER: ${{ github.event.issue.number }}
19+
BODY: >
20+
Please squash your commits together in order to get htem merged
21+
:sparkles: Thank you for your contribution! :sparkles:

0 commit comments

Comments
 (0)