diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 0000000..a87ae5c --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -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 + diff --git a/.gitlint b/.gitlint new file mode 100644 index 0000000..d54c650 --- /dev/null +++ b/.gitlint @@ -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 \ No newline at end of file