diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index 6154e20c5b..f022d846ae 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -10,12 +10,16 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: wagoid/commitlint-github-action@v6 + - uses: wagoid/commitlint-github-action@v5 + with: + configFile: ./commitlint.config.cjs pr-title: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install Dependencies - run: npm install @commitlint/config-conventional@^19.1.0 + run: npm install @commitlint/config-conventional - uses: JulienKode/pull-request-name-linter-action@v0.5.0 + with: + configuration-path: ./commitlint.config.cjs diff --git a/commitlint.config.mjs b/commitlint.config.cjs similarity index 72% rename from commitlint.config.mjs rename to commitlint.config.cjs index fb66fc3c21..f663c4513e 100644 --- a/commitlint.config.mjs +++ b/commitlint.config.cjs @@ -1,7 +1,11 @@ -import { RuleConfigSeverity } from "@commitlint/types"; +const RuleConfigSeverity = { + Disabled : 0, + Warning : 1, + Error : 2, +} // Config used by 'commitlint' GitHub workflow -export default { +module.exports = { extends: ["@commitlint/config-conventional"], // Rules: https://commitlint.js.org/reference/rules.html rules: {