Skip to content

fix pattern matching#7

Merged
comatory merged 20 commits intomasterfrom
fix-pattern-matching
Aug 8, 2025
Merged

fix pattern matching#7
comatory merged 20 commits intomasterfrom
fix-pattern-matching

Conversation

@comatory
Copy link
Owner

@comatory comatory commented Aug 8, 2025

This PR fixes issues with incorrect implementation of CODEOWNERS spec. The initial approach was very naive, basically just matching substrings, but there's more to it such as:

  • ** patterns
  • specificity of folders
  • *.* extension patterns
  • excluding subfolders from ownership

I ended up generating tests according to that spec and integrated the codebase to use package management via luarocks. Tests are using luaunit.

@comatory comatory force-pushed the fix-pattern-matching branch from 61d479f to 0679609 Compare August 8, 2025 12:44
@comatory comatory force-pushed the fix-pattern-matching branch 2 times, most recently from 9de7552 to 336ce25 Compare August 8, 2025 13:06
@comatory comatory force-pushed the fix-pattern-matching branch from 336ce25 to 43a40c4 Compare August 8, 2025 13:42
@comatory comatory force-pushed the fix-pattern-matching branch from 43a40c4 to 795bde6 Compare August 8, 2025 13:48
@comatory comatory marked this pull request as ready for review August 8, 2025 14:20
@comatory
Copy link
Owner Author

comatory commented Aug 8, 2025

Will do manual tests to validate the changes, then will release it as 0.0.5

@comatory comatory force-pushed the fix-pattern-matching branch from 8fb9830 to f8cc75a Compare August 8, 2025 19:00
@comatory comatory merged commit 27bfc91 into master Aug 8, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant