From 37c2f507a01af06627ff93eafa4fc80b2734620e Mon Sep 17 00:00:00 2001 From: stijn Date: Tue, 19 Jan 2021 15:06:50 +0100 Subject: github/workflows: Add workflow to verify commit message format. Using the new tools/verifygitlog.py script. --- tools/ci.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tools') diff --git a/tools/ci.sh b/tools/ci.sh index 4e4aad560..c6b641dae 100755 --- a/tools/ci.sh +++ b/tools/ci.sh @@ -29,6 +29,16 @@ function ci_code_formatting_run { tools/codeformat.py -v } +######################################################################################## +# commit formatting + +function ci_commit_formatting_run { + git remote add upstream https://github.com/micropython/micropython.git + git fetch --depth=100 upstream master + # For a PR, upstream/master..HEAD ends with a merge commit into master, exlude that one. + tools/verifygitlog.py -v upstream/master..HEAD --no-merges +} + ######################################################################################## # code size -- cgit v1.2.3