Skip to content

chore(ci): enforce conventional commits with scopes - #133

Merged
HamzaAmar merged 2 commits into
mainfrom
chore/enforce-conventional-commits
Sep 22, 2026
Merged

HamzaAmar merged 2 commits into
mainfrom
chore/enforce-conventional-commits

Conversation

@HamzaAmar

Copy link
Copy Markdown
Owner

Description

CONTRIBUTING only said "use Conventional Commits" with no format, scopes, or atomic-commit rule. That led to vague history like fix: icons problem and god-commits mixing fixes + releases.

This PR makes the rule explicit and enforced:

  • CONTRIBUTING.md — required type(scope): subject, monorepo scopes, imperative mood, good vs bad examples from our own history
  • .husky/commit-msg — rejects scope-less/vague messages with a helpful error

Testing

  • fix: icons problem -> rejected (exit 1)
  • fix(core): align button icon and text -> accepted (exit 0)
  • Verified git log --oneline -3 shows 2 atomic commits, one WHY each

Checklist (from your PR template)

  • Follows coding guidelines, fully typed, no new deps
  • Works cross-browser, high-contrast / reduced-motion not affected (docs + shell hook only)
  • Docs updated (CONTRIBUTING.md)
  • No a11y / performance impact

Related

Demo for clean-history mentoring — no issue to close. Follow-up could add commitlint if we want richer linting later.

CONTRIBUTING only said use Conventional Commits without format, scopes, or atomic-commit guidance, which led to vague messages like fix: icons problem and god commits mixing fixes with releases. Document the required type(scope) format, monorepo scopes, imperative mood, good examples, and anti-patterns so future commits stay searchable and revert-safe.
Bad messages like fix: icons problem slipped through because husky only ran lint-staged. Add a commit-msg guard requiring type(scope): subject, with the monorepo scopes, so vague and scope-less commits fail fast with a helpful example.
@vercel

vercel Bot commented Sep 22, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pillar-ui-docs-fu15-e6wt Ready Ready Preview Sep 22, 2026 5:50pm UTC
pillar-ui-docs-i3jy Error Error Sep 22, 2026 5:50pm UTC

@changeset-bot

changeset-bot Bot commented Sep 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 839a246

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@HamzaAmar

Copy link
Copy Markdown
Owner Author

LGTM.

@HamzaAmar
HamzaAmar merged commit 971a134 into main Sep 22, 2026
5 of 6 checks passed
@HamzaAmar
HamzaAmar deleted the chore/enforce-conventional-commits branch September 22, 2026 17:57

This branch had an error being deployed

1 failed and 1 active deployments
Preview – pillar-ui-docs-fu15-e6wt — 839a2464 Deployed Sep 22, 2026 by vercel[bot]
Preview – pillar-ui-docs-i3jy — 839a2464 Deployed Sep 22, 2026 by vercel[bot]
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.

1 participant