ci: add commintlint pre-commit

This commit is contained in:
auricom
2021-04-23 00:19:07 +02:00
parent 8b3896fb69
commit 920c68cae5
3 changed files with 7 additions and 15 deletions

View File

@@ -3,6 +3,12 @@
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: false
repos:
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
rev: v2.2.0
hooks:
- id: commitlint
stages: [commit-msg]
additional_dependencies: ['@commitlint/config-angular']
- repo: https://github.com/adrienverge/yamllint.git
rev: v1.26.1
hooks:

View File

@@ -1,15 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: bookstack-config
namespace: data
labels:
kasten-io-snapshots: "enable"
spec:
accessModes:
- ReadWriteOnce
storageClassName: rook-ceph-block
resources:
requests:
storage: 5Gi

1
commitlint.config.js Normal file
View File

@@ -0,0 +1 @@
module.exports = {extends: ['@commitlint/config-conventional']}