github/workflows: Add workflow to verify commit message format.

Using the new tools/verifygitlog.py script.
pull/6820/head
stijn 2021-01-19 15:06:50 +01:00 zatwierdzone przez Damien George
rodzic d48860c7dd
commit 37c2f507a0
2 zmienionych plików z 24 dodań i 0 usunięć

Wyświetl plik

@ -0,0 +1,14 @@
name: Check commit message formatting
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: '100'
- uses: actions/setup-python@v1
- name: Check commit message formatting
run: source tools/ci.sh && ci_commit_formatting_run

Wyświetl plik

@ -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