From 0dea21ee3d235a6b3a059efc9002f53eb0962519 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Sat, 7 Nov 2026 16:15:20 +0100 Subject: [PATCH] ci: align commit checks with repository configuration --- .commitlintrc.json | 12 +++++++++++- .github/dependabot.yml | 12 ++++++++++++ .github/renovate.json | 1 + .github/workflows/__semantic-pull-request.yml | 5 ++--- .github/workflows/__shared-ci.yml | 2 +- CONTRIBUTING.md | 3 +++ Dockerfile | 2 +- 7 files changed, 31 insertions(+), 6 deletions(-) diff --git a/.commitlintrc.json b/.commitlintrc.json index c30e5a97..7e3f1cff 100644 --- a/.commitlintrc.json +++ b/.commitlintrc.json @@ -1,3 +1,13 @@ { - "extends": ["@commitlint/config-conventional"] + "extends": ["@commitlint/config-conventional"], + "rules": { + "subject-case": [ + 1, + "never", + ["sentence-case", "start-case", "pascal-case", "upper-case"] + ], + "header-max-length": [1, "always", 100], + "body-max-line-length": [1, "always", 100], + "footer-max-line-length": [1, "always", 100] + } } diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 51c907b7..310cf4c4 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,6 +1,9 @@ version: 2 updates: - package-ecosystem: docker + commit-message: + prefix: build + include: scope open-pull-requests-limit: 20 directory: "/" schedule: @@ -15,6 +18,9 @@ updates: - "*" - package-ecosystem: github-actions + commit-message: + prefix: build + include: scope open-pull-requests-limit: 20 directories: - "/" @@ -31,6 +37,9 @@ updates: - "*" - package-ecosystem: npm + commit-message: + prefix: build + include: scope open-pull-requests-limit: 20 versioning-strategy: increase directories: @@ -52,6 +61,9 @@ updates: - "*" - package-ecosystem: "devcontainers" + commit-message: + prefix: build + include: scope open-pull-requests-limit: 20 directory: "/" schedule: diff --git a/.github/renovate.json b/.github/renovate.json index 06e29e51..b7c72a42 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -3,6 +3,7 @@ "extends": ["config:recommended"], "enabledManagers": ["github-actions", "nodenv", "custom.regex"], "semanticCommits": "enabled", + "semanticCommitType": "build", "minimumReleaseAge": "7 days", "minimumReleaseAgeBehaviour": "timestamp-optional", "pinDigests": true, diff --git a/.github/workflows/__semantic-pull-request.yml b/.github/workflows/__semantic-pull-request.yml index 6798cf6a..33e70021 100644 --- a/.github/workflows/__semantic-pull-request.yml +++ b/.github/workflows/__semantic-pull-request.yml @@ -12,7 +12,6 @@ permissions: {} jobs: main: - uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0 permissions: - contents: write - pull-requests: write + contents: read + uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@f0baf63a8aa2bcfe9847aee00d1fdfa5e32a749a # 2.0.0 diff --git a/.github/workflows/__shared-ci.yml b/.github/workflows/__shared-ci.yml index 087215b6..8f83e28f 100644 --- a/.github/workflows/__shared-ci.yml +++ b/.github/workflows/__shared-ci.yml @@ -7,7 +7,7 @@ permissions: {} jobs: linter: - uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0 + uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@f0baf63a8aa2bcfe9847aee00d1fdfa5e32a749a # 2.0.0 permissions: actions: read contents: read diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b01125d0..8b2a2592 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,8 @@ # Contributing +Use the [common commit process](https://github.com/hoverkraft-tech/ci-github-common/blob/9e235e87e1da898e33689b346590dfc69b45b0a6/docs/usage/commits.md) +for commit messages, PR titles and dependency updates. + When contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change. diff --git a/Dockerfile b/Dockerfile index 2cf267f5..48492103 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.0 +FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.1@sha256:7fbeb0e47711e939db09027b64d2b4f405dd271dad056fe42dc05ac15a6ddab0 HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh","-c","test -d /github/home"] ARG UID=1000