From 6455b43c84491455f63a16d701e6b606f1f89515 Mon Sep 17 00:00:00 2001 From: Chris Harrison <36608309+chris3ware@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:35:06 +0000 Subject: [PATCH 1/3] chore(commitlint): Rename configuration file Signed-off-by: Chris Harrison <36608309+chris3ware@users.noreply.github.com> --- .github/workflows/.commitlintrc.json | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/.commitlintrc.json diff --git a/.github/workflows/.commitlintrc.json b/.github/workflows/.commitlintrc.json new file mode 100644 index 0000000..dce3570 --- /dev/null +++ b/.github/workflows/.commitlintrc.json @@ -0,0 +1,26 @@ +{ + "rules": { + "body-leading-blank": [1, "always"], + "body-max-line-length": [2, "always", 72], + "footer-leading-blank": [1, "always"], + "footer-max-line-length": [2, "always", 72], + "header-max-length": [2, "always", 72], + "scope-case": [2, "always", "lower-case"], + "scope-empty": [1, "never"], + "scope-enum": [ + 2, + "always", + ["commitlint", ".github", "pr-check", "trunk"], + ], + "subject-case": [1, "always", "sentence-case"], + "subject-empty": [2, "never"], + "subject-full-stop": [2, "never", "."], + "type-case": [2, "always", "lower-case"], + "type-empty": [2, "never"], + "type-enum": [ + 2, + "always", + ["chore", "ci", "docs", "feat", "fix", "refactor"] + ] + } +} From ed51b27e49ea9ce009c47fa4384d495bbdd18c8f Mon Sep 17 00:00:00 2001 From: chris3ware <36608309+chris3ware@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:46:59 +0000 Subject: [PATCH 2/3] ci(trunk): Update trunk.yaml to latest versions --- .trunk/trunk.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index c10e6b0..469e927 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -2,27 +2,27 @@ # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml version: 0.1 cli: - version: 1.22.4 + version: 1.22.10 # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) plugins: sources: - id: trunk - ref: v1.6.2 + ref: v1.6.7 uri: https://github.com/trunk-io/plugins # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) runtimes: enabled: - - node@18.12.1 + - node@18.20.5 - python@3.10.8 # This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) lint: enabled: - - actionlint@1.7.1 - - checkov@3.2.243 + - actionlint@1.7.7 + - checkov@3.2.379 - git-diff-check - - markdownlint@0.41.0 - - prettier@3.3.3 - - trufflehog@3.81.10 + - markdownlint@0.44.0 + - prettier@3.5.3 + - trufflehog@3.88.14 - yamllint@1.35.1 actions: enabled: From 568a3e6e44d240fa991bac59d1d6546a597365e0 Mon Sep 17 00:00:00 2001 From: chris3ware <36608309+chris3ware@users.noreply.github.com> Date: Tue, 4 Mar 2025 15:49:29 +0000 Subject: [PATCH 3/3] ci(commitlint): Format config file --- .../.commitlintrc.json => .commitlintrc.json | 6 +-- commitlint.config.js | 39 ------------------- 2 files changed, 1 insertion(+), 44 deletions(-) rename .github/workflows/.commitlintrc.json => .commitlintrc.json (85%) delete mode 100644 commitlint.config.js diff --git a/.github/workflows/.commitlintrc.json b/.commitlintrc.json similarity index 85% rename from .github/workflows/.commitlintrc.json rename to .commitlintrc.json index dce3570..a52d700 100644 --- a/.github/workflows/.commitlintrc.json +++ b/.commitlintrc.json @@ -7,11 +7,7 @@ "header-max-length": [2, "always", 72], "scope-case": [2, "always", "lower-case"], "scope-empty": [1, "never"], - "scope-enum": [ - 2, - "always", - ["commitlint", ".github", "pr-check", "trunk"], - ], + "scope-enum": [2, "always", ["commitlint", ".github", "pr-check", "trunk"]], "subject-case": [1, "always", "sentence-case"], "subject-empty": [2, "never"], "subject-full-stop": [2, "never", "."], diff --git a/commitlint.config.js b/commitlint.config.js deleted file mode 100644 index 649cf17..0000000 --- a/commitlint.config.js +++ /dev/null @@ -1,39 +0,0 @@ -module.exports = { - rules: { - "body-leading-blank": [1, "always"], - "body-max-line-length": [2, "always", 72], - "footer-leading-blank": [1, "always"], - "footer-max-line-length": [2, "always", 72], - "header-max-length": [2, "always", 72], - "scope-case": [2, "always", "lower-case"], - "scope-empty": [1, "never"], - "scope-enum": [ - 1, - "always", - ["commitlint", ".github", "pr-check", "release", "trunk"], - ], - //"signed-off-by": [1, "always", "Signed-off-by:"], - "subject-case": [1, "always", "sentence-case"], - "subject-empty": [2, "never"], - "subject-full-stop": [2, "never", "."], - "type-case": [2, "always", "lower-case"], - "type-empty": [2, "never"], - "type-enum": [ - 2, - "always", - [ - "build", - "chore", - "ci", - "docs", - "feat", - "fix", - "perf", - "refactor", - "revert", - "style", - "test", - ], - ], - }, -};