jhult opened a new pull request, #263: URL: https://github.com/apache/skywalking-eyes/pull/263
## Summary - Fixed header check/fix commands to respect specified file paths even when in a git repository - Previously, specifying paths in a git repo would incorrectly check all tracked files instead of just the specified paths - Now supports individual files, directories, and glob patterns correctly in all contexts ## Changes - Added `matchPaths()` function in `pkg/header/check.go` to filter files using glob pattern matching - Updated `listFiles()` to respect configured paths when in git repositories - Updated help text for `header check` and `header fix` commands to clarify accepted path types - Added `TestMatchPaths()` to verify pattern matching behavior ## Testing - All existing tests pass - New `TestMatchPaths()` validates exact file matches, glob patterns, and double-star patterns - Verified behavior with single files, multiple files, and glob patterns in git repositories -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
