Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/gitlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Git Lint

on:
[pull_request]

jobs:
compliance_job:
runs-on: ubuntu-latest
name: Run compliance checks on patch series (PR)
steps:
- uses: actions/checkout@v2
- name: Run Compliance Tests
continue-on-error: true
id: compliance
env:
BASE_REF: ${{ github.base_ref }}
run: |
pip3 install setuptools gitlint pyflakes diff-cover
git fetch origin master:refs/remotes/origin/master
gitlint --commits origin/master..
# gitlint --commits "origin/${BASE_REF}.."
# gitlint --commits 2b95b9b46b78299ee0e2c38f57499aef02b65d13

9 changes: 9 additions & 0 deletions .gitlint
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[title-max-length]
line-length=72

[body-max-line-length]
line-length=72

[general]
ignore=body-is-missing,B6
ignore-merge-commits=true