Skip to content

relizy / isCommitOnlyInIgnoredPackages

Function: isCommitOnlyInIgnoredPackages() ​

isCommitOnlyInIgnoredPackages(commit, ignoredPaths): boolean

Defined in: src/core/repo.ts:189

True when EVERY changed file of the commit lives inside an ignored package. Such commits are excluded from the root (unified/selective) version bump and changelog so a breaking change scoped to an ignored package never bumps the whole repository. Commits with no detectable files are kept (fail-open).

Parameters ​

commit ​

GitCommit

ignoredPaths ​

string[]

Returns ​

boolean

Released under the MIT License.