Skip to content

ci: add a commitlint workflow reporting Lint commit messages - #38

Merged
radiusred-cody[bot] merged 1 commit into
mainfrom
task/37-add-a-commitlint-workflow-so-prs-in-gith
Sep 3, 2026
Merged

ci: add a commitlint workflow reporting Lint commit messages#38
radiusred-cody[bot] merged 1 commit into
mainfrom
task/37-add-a-commitlint-workflow-so-prs-in-gith

Conversation

@radiusred-cody

@radiusred-cody radiusred-cody Bot commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

Closes #37

What was done

Two files, nothing else:

  • .github/workflows/commitlint.yml — runs on pull_request with contents: read; one job commitlint whose name: is exactly Lint commit messages, checking out with full history and running wagoid/commitlint-github-action@v6 over the PR's commits.
  • commitlint.config.mjs at the repo root — extends: ['@commitlint/config-conventional'], the action's default config path.

Untouched: reusable-release.yml, reusable-finalize-release.yml, .github/actions/calculate_version/. No files overlap with #36.

Requirements

  • M1-R2 (as amended by the operator's Decision on radiusred/ops#1): .github carries a commitlint workflow that reports the org-required "Lint commit messages" check on its own PRs.

Why this shape

The org ruleset require-lint requires the status-check context Lint commit messages exactly. ha-sinkhole's workflow (the model named in the task) has no job name:, so its check reports as commitlint and would not satisfy the ruleset; codecrew-www's job is named Lint commit messages and its PRs pass. Decision recorded on the task issue: #37 (comment)

Verification

The workflow file rides in this PR's head, so the check ran on this PR itself. Observed via the checks API on commit d92386a:

The PR's single commit is conventional (ci: … (#37)), so a pass is the expected outcome; a non-conventional message would fail the same job. YAML was also validated locally before commit. Once this lands, #36 is rebased onto main so the check reports there too (per the task text).

Deviations

None from the plan.

The org ruleset require-lint requires a status check with the context
"Lint commit messages" on every public repo's default branch, and this
repo had no workflow that runs on pull_request, so no PR here could
report it and task finish refused NO_CHECKS.

Add a single-job workflow whose job is named exactly "Lint commit
messages", running wagoid/commitlint-github-action against the PR's
commits, with a root commitlint.config.mjs extending
config-conventional. The action bundles commitlint, so no package
manifest or lock file is needed.
@radiusred-cody radiusred-cody Bot linked an issue Sep 3, 2026 that may be closed by this pull request

@radiusred-checky radiusred-checky Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved.

Evidence checked independently:

  • The checks API for head d92386a reports one successful check-run named exactly Lint commit messages; the main-branch organization rules require exactly that context (ruleset 17497708).
  • The two-file diff matches the recorded #37 plan and the operator-amended M1-R2 scope. It does not touch either reusable release workflow or .github/actions/calculate_version/.
  • The workflow and config match the cited radiusred/codecrew-www model. The action defaults to the root commitlint.config.mjs, bundles @commitlint/config-conventional, and the conventional commit on this PR passed.
  • contents: read is minimal and sufficient as demonstrated by the successful run. The @v6 major-version pin is consistent with the explicitly recorded project decision and existing org model.
  • PR #36 changes a disjoint file set, and a merge-tree of the two PR heads completed cleanly.
  • The PR description and #37 record accurately describe the implementation, verification, scope, and lack of deviations.

The diff documents no shell commands to execute verbatim.

@radiusred-cody
radiusred-cody Bot merged commit 58e3927 into main Sep 3, 2026
1 check passed
@radiusred-cody
radiusred-cody Bot deleted the task/37-add-a-commitlint-workflow-so-prs-in-gith branch September 3, 2026 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a commitlint workflow so PRs in .github report the required check

0 participants