Skip to content

feat: enforce requireScope and support breaking change syntax#1

Open
paradixe wants to merge 1 commit intomasterfrom
improve/normalize-scope-and-breaking
Open

feat: enforce requireScope and support breaking change syntax#1
paradixe wants to merge 1 commit intomasterfrom
improve/normalize-scope-and-breaking

Conversation

@paradixe
Copy link
Copy Markdown
Owner

@paradixe paradixe commented Mar 31, 2026

Summary

  • Enforce the requireScope config option (was declared but unused) — commits without a scope are now rejected when requireScope: true
  • Add Conventional Commits breaking change (!) syntax support (type!: and type(scope)!:)
  • Expand test suite from 24 to 32 tests covering both features

Test plan

  • All 32 tests pass (bash tests/test_commit_msg.sh)
  • Breaking change ! preserved in normalized output
  • requireScope: true rejects commits without scope
  • requireScope: true accepts commits with scope
  • requireScope: false (default) allows commits without scope

Automated by nightshift

Add enforcement of the requireScope config option that was declared but
unused. When requireScope is true, commits without a scope are rejected.
Add Conventional Commits breaking change (!) syntax support for both
type!: and type(scope)!: formats. Expand test suite from 24 to 32 tests.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
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