diff --git a/cmd/generate_changelog/internal/git/walker.go b/cmd/generate_changelog/internal/git/walker.go index c76611d3..5ebbd7ce 100644 --- a/cmd/generate_changelog/internal/git/walker.go +++ b/cmd/generate_changelog/internal/git/walker.go @@ -316,7 +316,7 @@ func (w *Walker) WalkHistorySinceTag(sinceTag string) (map[string]*Version, erro currentVersion := "Unreleased" err = commitIter.ForEach(func(c *object.Commit) error { - // Stop when we reach the tag commit + // Stop iteration when the hash of the current commit matches the hash of the specified sinceTag commit if c.Hash == tagCommit.Hash { return storer.ErrStop } diff --git a/internal/tools/patterns_loader.go b/internal/tools/patterns_loader.go index 762caacb..a6a68d3d 100644 --- a/internal/tools/patterns_loader.go +++ b/internal/tools/patterns_loader.go @@ -335,7 +335,7 @@ func (o *PatternsLoader) createUniquePatternsFile() (err error) { patternNamesMap[entry.Name()] = true } } - fmt.Printf("📂 Also included patterns from custom directory: %s\n", o.Patterns.CustomPatternsDir) + fmt.Fprintf(os.Stderr, "📂 Also included patterns from custom directory: %s\n", o.Patterns.CustomPatternsDir) } else { fmt.Fprintf(os.Stderr, "Warning: Could not read custom patterns directory %s: %v\n", o.Patterns.CustomPatternsDir, customErr) }