Skip to content

Commit

Permalink
github/workflows: Verify commit message format.
Browse files Browse the repository at this point in the history
  • Loading branch information
stinos committed Jan 26, 2021
1 parent b647675 commit 5f1e127
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/commit_formatting.yml
@@ -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
10 changes: 10 additions & 0 deletions tools/ci.sh
Expand Up @@ -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

Expand Down

0 comments on commit 5f1e127

Please sign in to comment.