Skip to content

Commit

Permalink
Merge pull request #30 from open-dynaMIX/use_gitlint_in_pipeline
Browse files Browse the repository at this point in the history
chore(ci): use gitlint instead of commitlint
  • Loading branch information
open-dynaMIX authored Jan 29, 2020
2 parents 9b9d67c + dc11a7d commit 08fe445
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
18 changes: 13 additions & 5 deletions .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion dev_helpers/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 08fe445

Please sign in to comment.