fix: prevent excluding the git root folder from changelog

This commit is contained in:
shumadrid 2025-04-11 14:42:22 +02:00
parent 53a7b0335f
commit f267afbea3

View file

@ -110,7 +110,11 @@ function isAbsoluteGitIgnoreRuleAboveRoot({
}: {
absoluteGitIgnoreRule: string;
}): boolean {
return absoluteGitIgnoreRule.startsWith('/../');
return (
absoluteGitIgnoreRule.startsWith('/../') ||
// Case when path is the root folder itself
absoluteGitIgnoreRule.startsWith('//')
);
}
export function addExcludeMenuItem({