Skip to content

chore(workflows): remove the pre-commit hooks and workflow - #63

Merged
davidmoralesz merged 1 commit into
mainfrom
chore/remove-pre-commit-support
Oct 9, 2026
Merged

davidmoralesz merged 1 commit into
mainfrom
chore/remove-pre-commit-support

Conversation

@davidmoralesz

Copy link
Copy Markdown
Contributor

What

Removes the three deprecated pieces that were kept only until every project had moved to lefthook and commitlint:

Removed Replaced by
.devtools/check-conventional-commit.sh and its test cases commitlint (pr-checks/lint.mjs in CI, each repo's commit-msg hook locally)
.pre-commit-hooks.yaml lefthook/org.yml
.github/workflows/ci-pre-commit.yml ci-lint.yml

Docs follow: the README's "Pre-commit hooks (deprecated)" section is gone, and the lefthook remote is now shown at the floating v1 tag with refetch_frequency: 24h, which is what project-template ships. The README used to say never to use v1 there.

Is anything still using them?

No. On main of datapacks, bimo-model, bimo-mod, zero-trust, tallyhopper and project-template, a search for ci-pre-commit, check-conventional-commit and pre-commit-hooks.yaml finds nothing.

Open Dependabot branches cut before the migrations still carry the old lint.yml, but a pull request runs the workflow from its merge with main, so they call ci-lint.yml.

Release

The type is chore on purpose: removing a reusable workflow would otherwise read as a breaking change and semantic-release would cut v2, moving consumers off v1. Nothing calls the workflow, so nothing breaks. The files leave v1 when the next release moves the tag.

Tested

  • .devtools/test-hooks.sh: all pass, with the shell commit-checker cases removed and the commitlint cases kept.
  • lefthook run pre-commit --all-files: Prettier, actionlint, zizmor, shellcheck, gitleaks and action-pins pass.

Every studiobimo project now runs its hooks with lefthook and checks commits
with commitlint, so nothing calls these any more:

- .devtools/check-conventional-commit.sh, replaced by commitlint
- .pre-commit-hooks.yaml, replaced by lefthook/org.yml
- ci-pre-commit.yml, replaced by ci-lint.yml

The docs now show the lefthook remote at the floating v1 tag with a daily
refetch, which is what the project template uses.
@davidmoralesz
davidmoralesz merged commit 92b119d into main Oct 9, 2026
6 checks passed
@davidmoralesz
davidmoralesz deleted the chore/remove-pre-commit-support branch October 9, 2026 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant