From c50d972ed436e3c015a910178215dfb35dec9e63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Aveiro?= Date: Tue, 19 Aug 2025 10:57:55 +0100 Subject: [PATCH] ci: bump commitlint version and update config (#8) * fix: bump wagoid/commitlint-github-action from 5 to 6 Bumps [wagoid/commitlint-github-action](https://github.com/wagoid/commitlint-github-action) from 5 to 6. - [Changelog](https://github.com/wagoid/commitlint-github-action/blob/master/CHANGELOG.md) - [Commits](https://github.com/wagoid/commitlint-github-action/compare/v5...v6) --- updated-dependencies: - dependency-name: wagoid/commitlint-github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * ci: update commitlint config * ci: update commitlint config to use .mjs file extension --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/configs/commitlint.config.js | 9 --------- .github/configs/commitlint.config.mjs | 9 +++++++++ .github/workflows/checks.base.yaml | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) delete mode 100644 .github/configs/commitlint.config.js create mode 100644 .github/configs/commitlint.config.mjs diff --git a/.github/configs/commitlint.config.js b/.github/configs/commitlint.config.js deleted file mode 100644 index a55dc92..0000000 --- a/.github/configs/commitlint.config.js +++ /dev/null @@ -1,9 +0,0 @@ -module.exports = { - extends: ['@commitlint/config-conventional'], - rules: { - 'body-max-line-length': [1, 'always', 100], // warning - 'header-max-length': [1, 'always', 100], // warning - 'footer-max-line-length': [1, 'always', 100], // warning - 'subject-case': [1, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], // warning - }, -} diff --git a/.github/configs/commitlint.config.mjs b/.github/configs/commitlint.config.mjs new file mode 100644 index 0000000..9fe9291 --- /dev/null +++ b/.github/configs/commitlint.config.mjs @@ -0,0 +1,9 @@ +export default { + extends: ['@commitlint/config-conventional'], + rules: { + 'body-max-line-length': [1, 'always', 100], // warning + 'header-max-length': [1, 'always', 100], // warning + 'footer-max-line-length': [1, 'always', 100], // warning + 'subject-case': [1, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']], // warning + }, +} diff --git a/.github/workflows/checks.base.yaml b/.github/workflows/checks.base.yaml index 015fc18..14c6aca 100644 --- a/.github/workflows/checks.base.yaml +++ b/.github/workflows/checks.base.yaml @@ -11,6 +11,6 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - name: Run Commitlint - uses: wagoid/commitlint-github-action@v5 + uses: wagoid/commitlint-github-action@v6 with: - configFile: .github/configs/commitlint.config.js + configFile: .github/configs/commitlint.config.mjs