Skip to content

relizy / isCommitInPackage

Function: isCommitInPackage() ​

isCommitInPackage(commit, packageRelativePath): boolean

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

True when the commit changes a file of the package directory (POSIX, relative to the repository). Both paths of a rename or a copy count, so a file moved out of the package still belongs to its history. The directory is compared as a whole: packages/components does not match packages/components-mcp/....

Parameters ​

commit ​

GitCommit

packageRelativePath ​

string

Returns ​

boolean

Released under the MIT License.