File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
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
You can’t perform that action at this time.
0 commit comments