Add validate command
#45
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces several enhancements and fixes to the
@codeowners-flow/clipackage, including a new command, improved string formatting, and refactoring for better code organization and readability. The most important changes are grouped by theme below.New Features:
CODEOWNERSfile against a set of rules (.changeset/light-keys-crash.md,packages/cli/src/index.ts,packages/cli/src/validate-codeowners.ts,packages/cli/src/validate-codeowners.test.ts). [1] [2] [3] [4] [5]Enhancements:
CODEOWNERS(.changeset/chilly-clowns-start.md).defineConfigfrom CLI (.changeset/purple-candies-matter.md,packages/cli/src/init.ts,packages/cli/src/init.test.ts). [1] [2] [3] [4] [5]Refactoring:
generateCodeOwnersfunction to separate concerns and improve readability (packages/cli/src/generate-codeowners.ts).getCodeOwnersContentto usededentfor better formatting (packages/cli/src/get-codeowners-content.ts). [1] [2]Dependency Updates:
dedentdependency topackage.json(packages/cli/package.json).Codeowners Configuration:
CODEOWNERSfile by consolidating team assignments (.github/CODEOWNERS,packages/cli/src/__fixtures__/codeowners.config.mjs). [1] [2]