Skip to content

Commit 0f89861

Browse files
authored
Merge 57e366b into 81bf400
2 parents 81bf400 + 57e366b commit 0f89861

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

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

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Merge to main
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- master
7+
types:
8+
- opened
9+
- labeled
10+
- unlabeled
11+
12+
jobs:
13+
pr-message:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
pull-requests: write
17+
steps:
18+
- uses: mshick/add-pr-comment@v2
19+
with:
20+
message: >
21+
### 📝 PRs merging into main branch
22+
23+
**Our main branch should always be in a releasable state**.
24+
If you are working on a larger change, or if you don't want
25+
this change to see the light of the day just yet, consider
26+
using a feature branch first, and only merge into the main
27+
branch when the code complete and ready to be released.
28+
29+
30+
**Add the 'main-merge-ack' label to your PR to confirm
31+
merging into the main branch is intended.**
32+
33+
- name: Label checker
34+
if: "!contains( github.event.pull_request.labels.*.name, 'main-merge-ack')"
35+
run: |
36+
echo Missing 'main-merge-ack' label. Read the comment about merging to master in your PR for more information.
37+
exit 1
38+
39+
- name: Success
40+
run: exit 0

0 commit comments

Comments
 (0)