Skip to content

Commit ae4b50c

Browse files
committed
ci: align commit checks with repository configuration
1 parent 6e2b301 commit ae4b50c

8 files changed

Lines changed: 41 additions & 7 deletions

File tree

‎.commitlintrc.json‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"extends": ["@commitlint/config-conventional"],
3+
"rules": {
4+
"subject-case": [
5+
1,
6+
"never",
7+
["sentence-case", "start-case", "pascal-case", "upper-case"]
8+
],
9+
"header-max-length": [1, "always", 100],
10+
"body-max-line-length": [1, "always", 100],
11+
"footer-max-line-length": [1, "always", 100]
12+
}
13+
}

‎.github/dependabot.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
version: 2
22
updates:
33
- package-ecosystem: docker
4+
commit-message:
5+
prefix: build
6+
include: scope
47
open-pull-requests-limit: 20
58
directory: /
69
schedule:
@@ -14,6 +17,9 @@ updates:
1417
cooldown:
1518
default-days: 7
1619
- package-ecosystem: github-actions
20+
commit-message:
21+
prefix: build
22+
include: scope
1723
open-pull-requests-limit: 20
1824
directories:
1925
- /
@@ -29,6 +35,9 @@ updates:
2935
cooldown:
3036
default-days: 7
3137
- package-ecosystem: composer
38+
commit-message:
39+
prefix: build
40+
include: scope
3241
open-pull-requests-limit: 20
3342
versioning-strategy: increase
3443
directories:
@@ -45,6 +54,9 @@ updates:
4554
cooldown:
4655
default-days: 7
4756
- package-ecosystem: devcontainers
57+
commit-message:
58+
prefix: build
59+
include: scope
4860
open-pull-requests-limit: 20
4961
directory: /
5062
schedule:

‎.github/renovate.json‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"extends": ["config:recommended"],
44
"enabledManagers": ["github-actions", "custom.regex"],
55
"semanticCommits": "enabled",
6+
"semanticCommitType": "build",
67
"minimumReleaseAge": "7 days",
78
"minimumReleaseAgeBehaviour": "timestamp-optional",
89
"pinDigests": true,
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: "Pull Request - Semantic Lint"
33

4-
on: # zizmor: ignore[dangerous-triggers] shared workflow handles PR metadata without checking out PR code
4+
on: # zizmor: ignore[dangerous-triggers] shared workflow checks out only the trusted base revision
55
pull_request_target:
66
types:
77
- opened
@@ -12,7 +12,6 @@ permissions: {}
1212

1313
jobs:
1414
main:
15-
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0
1615
permissions:
17-
contents: write
18-
pull-requests: write
16+
contents: read
17+
uses: hoverkraft-tech/ci-github-common/.github/workflows/semantic-pull-request.yml@f0baf63a8aa2bcfe9847aee00d1fdfa5e32a749a # 2.0.0

‎.github/workflows/__shared-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
permissions: {}
55
jobs:
66
linter:
7-
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@5fbb531db839a26ebcc35c4946be279f945f7633 # 1.0.0
7+
uses: hoverkraft-tech/ci-github-common/.github/workflows/linter.yml@f0baf63a8aa2bcfe9847aee00d1fdfa5e32a749a # 2.0.0
88
permissions:
99
contents: read
1010
statuses: write

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Contributing
22

3+
Use the [common commit process](https://github.com/hoverkraft-tech/ci-github-common/blob/9e235e87e1da898e33689b346590dfc69b45b0a6/docs/usage/commits.md)
4+
for commit messages, PR titles and dependency updates.
5+
36
When contributing to this repository, please first discuss the change you wish to make via issue,
47
email, or any other method with the owners of this repository before making a change.
58

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.0@sha256:a37519f1afdc1c239254fe3d9a3e76ee9f114990f09bba123c96b1737737d43e
1+
FROM ghcr.io/hoverkraft-tech/docker-base-images/super-linter:2.0.1@sha256:7fbeb0e47711e939db09027b64d2b4f405dd271dad056fe42dc05ac15a6ddab0
22

33
HEALTHCHECK --interval=5m --timeout=10s --start-period=30s --retries=3 CMD ["/bin/sh","-c","test -d /github/home"]
44
ARG UID=1000

‎docs/development/README.md‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,13 @@ then regenerate using that tool. The CI and release workflows include their auth
4747
regeneration writes them to the corresponding `.github/workflows/*.md` files.
4848

4949
Dependabot updates GitHub Actions, Composer fixtures, containers, and development
50-
containers. Renovate follows the common Hoverkraft maintenance workflow for
50+
containers. Each ecosystem explicitly uses the `build` commit prefix with a
51+
dependency scope. The root `.commitlintrc.json` configures the same rules for
52+
contributors and Dependabot. Conventional types and required subjects remain
53+
blocking; casing and line lengths produce warnings. Local linting, commit checks
54+
and the semantic pull request workflow read that repository configuration.
55+
56+
Renovate follows the common Hoverkraft maintenance workflow for
5157
Docker action references, the root `.php-version`, and the Composer bootstrap
5258
version. The maintenance workflow receives its GitHub App credentials from this
5359
repository's CI bot configuration; public reusable workflows do not assume those

0 commit comments

Comments
 (0)