File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check commit message formatting
2
+
3
+ on : [push, pull_request]
4
+
5
+ jobs :
6
+ build :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v2
10
+ with :
11
+ fetch-depth : ' 100'
12
+ - uses : actions/setup-python@v1
13
+ - name : Check commit message formatting
14
+ run : source tools/ci.sh && ci_commit_formatting_run
Original file line number Diff line number Diff line change @@ -29,6 +29,16 @@ function ci_code_formatting_run {
29
29
tools/codeformat.py -v
30
30
}
31
31
32
+ # #######################################################################################
33
+ # commit formatting
34
+
35
+ function ci_commit_formatting_run {
36
+ git remote add upstream https://github.com/micropython/micropython.git
37
+ git fetch --depth=100 upstream master
38
+ # For a PR, upstream/master..HEAD ends with a merge commit into master, exlude that one.
39
+ tools/verifygitlog.py -v upstream/master..HEAD --no-merges
40
+ }
41
+
32
42
# #######################################################################################
33
43
# code size
34
44
You can’t perform that action at this time.
0 commit comments