From 858bca96574dc25befe834833f7d08afe54ea8a0 Mon Sep 17 00:00:00 2001 From: Auguste Baum Date: Mon, 30 Sep 2024 16:30:54 +0200 Subject: [PATCH] change conf to yml --- .github/workflows/lint-pr-title.yml | 2 +- commitlint.config.js | 12 ------------ 2 files changed, 1 insertion(+), 13 deletions(-) delete mode 100644 commitlint.config.js diff --git a/.github/workflows/lint-pr-title.yml b/.github/workflows/lint-pr-title.yml index 384a01b4..db46b1dd 100644 --- a/.github/workflows/lint-pr-title.yml +++ b/.github/workflows/lint-pr-title.yml @@ -14,7 +14,7 @@ jobs: # Only download commitlint config, not the whole repo - uses: actions/checkout@v4 with: - sparse-checkout: commitlint.config.js + sparse-checkout: "*commitlint*" sparse-checkout-cone-mode: false - uses: actions/setup-node@v4 with: diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index e860c98e..00000000 --- a/commitlint.config.js +++ /dev/null @@ -1,12 +0,0 @@ -// Rules for commitlint -// Reference of all rules: https://commitlint.js.org/reference/rules.html -// This file adds customizations rules to the default ones defined in https://www.npmjs.com/package/@commitlint/config-conventional -/** - * @type {import('@commitlint/types').UserConfig} - */ -module.exports = { - extends: ["@commitlint/config-conventional"], - rules: { - "subject-case": [2, "always", ["sentence-case"]], - } -};