Commit dae59317 authored by Hordur Freyr Yngvason's avatar Hordur Freyr Yngvason Committed by João Cunha
Browse files

add commitlint for conventional commits

parent 19d4947f
Loading
Loading
Loading
Loading

.gitignore

0 → 100644
+5 −0
Original line number Diff line number Diff line
.DS_Store
.idea
*.log
tmp/
node_modules/
+11 −0
Original line number Diff line number Diff line
@@ -465,3 +465,14 @@ rspec:
    - gem install --no-document rspec
  script:
    - rspec test/rspec

commitlint:
  stage: test
  image: node:12
  needs: []
  before_script:
    - npm install
  script:
    - npx --quiet commitlint --from="$CI_MERGE_REQUEST_DIFF_BASE_SHA" --help-url 'https://gitlab.com/gitlab-org/cluster-integration/auto-deploy-image#git-commit-guidelines'
  rules:
    - if: "$CI_MERGE_REQUEST_DIFF_BASE_SHA"
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ that will build and tag the new image

This project uses [Semantic Versioning](https://semver.org). We use commit
messages to automatically determine the version bumps, so they should adhere to
the conventions of [Conventional Commits (v1.0.0-beta.2)](https://www.conventionalcommits.org/en/v1.0.0-beta.2/).
the conventions of [Conventional Commits (v1.0.0)](https://www.conventionalcommits.org/en/v1.0.0).

### TL;DR

commitlint.config.js

0 → 100644
+3 −0
Original line number Diff line number Diff line
module.exports = {
    extends: ['@commitlint/config-conventional'],
};

package-lock.json

0 → 100644
+3264 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading