hiebj / stately

elegant, type-safe state management
2 stars 1 forks source link

precommit.sh: reject cross-module commits #19

Closed hiebj closed 6 years ago

hiebj commented 6 years ago

Automatically generated changelogs can only be kept sane if commits are isolated to a single module. For example, changing stately-react may require upstream changes in stately-async, but the commit message for stately-async needs to be independently clear; that is, it should only reference API changes or additions that are relevant to its own code.

To achieve this, changes that span multiple modules need to be split into separate commits - one per module. Commits that span multiple modules should be rejected, forcing the developer to create a separate commit for each module change.

hiebj commented 6 years ago

closed in favor of #21