From b3aa96ad0c6c757999bad3c877c362f08aa7bd11 Mon Sep 17 00:00:00 2001 From: alextilot Date: Mon, 22 May 2023 08:57:01 -0500 Subject: [PATCH] ci: integrate commitlint into github pr --- .github/workflows/ci.yml | 8 ++++++++ commitlint.config.js | 2 ++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d4dfd3e5..83a0880e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,13 @@ name: ci on: pull_request jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v5 lint: runs-on: ubuntu-latest defaults: @@ -17,3 +24,4 @@ jobs: if: always() # get formatting errors even if there are errors above - run: npm run lint if: always() # get lint errors even if there are errors above + diff --git a/commitlint.config.js b/commitlint.config.js index aab8b6cb..5a928ecc 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -1,5 +1,7 @@ module.exports = { extends: ["@commitlint/config-conventional"], + helpUrl: + "https://github.com/amelioro/ameliorate/blob/main/CONTRIBUTING.md#conventional-commits", rules: { "type-enum": [ 2,