Skip to content

feat: add shared commitlint preset and package release workflow - #1

Merged
neilime merged 3 commits into
mainfrom
feat/shared-commitlint-preset
Dec 3, 2026
Merged

neilime merged 3 commits into
mainfrom
feat/shared-commitlint-preset

Conversation

@neilime

@neilime neilime commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Repositories currently duplicate their commitlint policy, and blocking casing or length rules reject valid generated dependency updates. Add @hoverkraft/commitlint-config as one independently versioned public package.

The preset extends the conventional configuration. Subject casing and header, body and footer lengths produce warnings for all authors. Existing conventional errors and explicit repository overrides stay blocking. Dependabot uses explicit build prefixes and dependency scopes; there are no bot exemptions or message rewrites.

Package delivery follows docusaurus-theme: shared workflows prepare the version and tag, run CI against that source, validate an isolated consumer, and publish the exact validated tarball through npm OIDC with provenance. This single JSON package needs no build or workspace. Usage, contributor, release and decision guides are included.

The development environment follows Hoverkraft conventions: Debian, Zsh, Node.js 24, Docker-in-Docker, GitHub CLI with gh act, a generated feature lockfile, and automatic locked dependency installation. Dependabot maintains the devcontainer features. The supplied artwork is included as a README logo and a self-contained social preview SVG, with a matching 1280 by 640 PNG for GitHub upload.

Workflow consumption is handled separately by hoverkraft-tech/ci-github-common#687.

Validation:

  • Built and started the devcontainer with the frozen feature lockfile; verified the non-root user, Node.js 24, GitHub CLI, gh act, Docker and all 12 policy tests (43.2 seconds including setup). The temporary container and volumes were removed.
  • SVGs rendered and inspected; the 30,934-byte PNG matches the final SVG exactly and meets GitHub dimensions. Full repository lint and documentation link checks passed.
  • 12 policy tests passed, including warnings alongside blocking errors and stricter repository overrides (about 0.44 seconds).
  • Packed tarball installed in an isolated commitlint consumer; consumer validation and npm publication dry run passed (3 seconds). This exercises package exports and dependency resolution without repeating the policy matrix.
  • Full repository Super-Linter checks passed; documentation links and whitespace checked.

Before the first release, an npm package maintainer must establish package ownership and configure the trusted publisher for hoverkraft-tech/commitlint-config, workflow release.yml. The organization release App, variable and secrets already cover all repositories. This PR does not publish an npm version.

@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Continuous Integration - Test results

Workflow run and full reports · Commit 2d6bbf2

Jobs: 1 success · 1 failure · 0 cancelled · 0 skipped · 0 abandoned.

Test: 12 passed · 0 failed · 0 skipped.

Test details

Test results

Test Results

Status Count
✅ Passed 12
❌ Failed 0
⏭️ Skipped 0
Total 12

✅ Pass Rate: 100.0%

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs failure 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Continuous Integration - Code coverage

Workflow run and full reports · Commit 2d6bbf2

Jobs: 1 success · 1 failure · 0 cancelled · 0 skipped · 0 abandoned.

No coverage reports available for this attempt. See the job results and workflow logs.

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs failure 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown

Continuous Integration - Lint results

Workflow run and full reports · Commit 2d6bbf2

Jobs: 1 success · 1 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
DOCKERFILE_HADOLINT Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs failure 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

Comment thread .github/workflows/pull-request-ci.yml Resolved
Comment thread Makefile Resolved
Comment thread README.md Resolved
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Pull request - Continuous Integration - Test results

Workflow run and full reports · Commit de68dc4

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Test: 12 passed · 0 failed · 0 skipped.

Test details

Test results

Test Results

Status Count
✅ Passed 12
❌ Failed 0
⏭️ Skipped 0
Total 12

✅ Pass Rate: 100.0%

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Pull request - Continuous Integration - Code coverage

Workflow run and full reports · Commit de68dc4

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

No coverage reports available for this attempt. See the job results and workflow logs.

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Pull request - Continuous Integration - Lint results

Workflow run and full reports · Commit de68dc4

Jobs: 2 success · 0 failure · 0 cancelled · 0 skipped · 0 abandoned.

Lint: Collected diagnostics and Super-Linter summaries. Execution status is included in the job outcomes.

Super-Linter details

Super-linter summary

Language Validation result
BIOME_FORMAT Pass ✅
BIOME_LINT Pass ✅
CHECKOV Pass ✅
DOCKERFILE_HADOLINT Pass ✅
GITHUB_ACTIONS Pass ✅
GITHUB_ACTIONS_ZIZMOR Pass ✅
GITLEAKS Pass ✅
GIT_COMMITLINT Pass ✅
GIT_MERGE_CONFLICT_MARKERS Pass ✅
JSCPD Pass ✅
MARKDOWN Pass ✅
MARKDOWN_PRETTIER Pass ✅
NATURAL_LANGUAGE Pass ✅
PRE_COMMIT Pass ✅
SPELL_CODESPELL Pass ✅
TRIVY Pass ✅
YAML Pass ✅
YAML_PRETTIER Pass ✅

All files and directories linted successfully

For more information, see the GitHub Actions workflow run

Powered by Super-linter
Super-linter revision: 2da136927bd4a73596db63044b504547c62cb854
Super-linter version: 9.0.0

Job results and report availability
Job Result Report artifacts
lint success 1
nodejs success 1

Only this attempt is included. On partial reruns, rerun all producer jobs for complete reports. CodeQL findings remain in code scanning; other diagnostics remain in the job logs.

@neilime
neilime merged commit 9601d5f into main Dec 3, 2026
41 checks passed
@neilime
neilime deleted the feat/shared-commitlint-preset branch December 3, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Introduces a new feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants