From 5518094475d49febc6ee58d5f6318cd3312b50fc Mon Sep 17 00:00:00 2001 From: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com> Date: Wed, 29 Jan 2020 13:39:03 +0100 Subject: [PATCH 1/2] chore(ci): use gitlint instead of commitlint --- .github/workflows/commitlint.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 37853282..12ca293d 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -1,11 +1,19 @@ -name: Commitlint -on: [pull_request] +name: Lint +on: [push, pull_request] jobs: lint: runs-on: ubuntu-latest - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + strategy: + matrix: + python: [3.8] steps: - uses: actions/checkout@v1 - - uses: wagoid/commitlint-github-action@v1 + - name: Setup Python + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python }} + - name: Install gitlint + run: pip install gitlint + - name: Run gitlint + run: gitlint --contrib contrib-title-conventional-commits --ignore B6 From dc11a7d789521dd018ae40f4a1c76bbbdc4f3a25 Mon Sep 17 00:00:00 2001 From: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com> Date: Wed, 29 Jan 2020 13:45:16 +0100 Subject: [PATCH 2/2] chore(dev): fixed typo in CONTRIBUTING.md --- dev_helpers/CONTRIBUTING.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev_helpers/CONTRIBUTING.md b/dev_helpers/CONTRIBUTING.md index 929cd4bc..5a4cd2e9 100644 --- a/dev_helpers/CONTRIBUTING.md +++ b/dev_helpers/CONTRIBUTING.md @@ -27,7 +27,7 @@ This hook uses [gitlint](https://github.com/jorisroovers/gitlint), so you need t Then you can add the foloowing symlink: ```bash -ln -s "$(pwd)/dev_helpers/commit-msg" "$(pwd).git/hooks/commit-msg" +ln -s "$(pwd)/dev_helpers/commit-msg" "$(pwd)/.git/hooks/commit-msg" ``` Now, your commit messages will be linted, before comitting.