Skip to content

Commit e0c6f0e

Browse files
committed
Add action to show a message when merging to the main branch
1 parent 4f41bde commit e0c6f0e

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/merge-to-main.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Merge to main
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
8+
jobs:
9+
pr-message:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
pull-requests: write
13+
steps:
14+
- uses: mshick/add-pr-comment@v2
15+
with:
16+
message: >
17+
### 📝 PRs merging into main branch
18+
19+
**Our main branch should always be in a releasable state**.
20+
If you are working on a larger change, or if you don't want
21+
this change to see the light of the day just yet, consider
22+
using a feature branch first, and only merge into the main
23+
branch when the code complete and ready to be released.

0 commit comments

Comments
 (0)