Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kbn-code-owners] General improvements #204023

Merged
merged 3 commits into from
Dec 12, 2024

Conversation

dolaru
Copy link
Member

@dolaru dolaru commented Dec 12, 2024

Summary

The following improvements have been made:

  • Added --json flag to CLI command to output result as JSON
  • Terminology updated to more accurately reflect object contents
  • Code owner teams are always returned as an array
  • Search path validation (is under repo root, exists)
  • Proper handling of inline comments
  • Better logging for scripts/check_ftr_code_owners.js

Existing usage of the @kbn/code-owners package has been updated accordingly, without modifying outcomes.

The following improvements have been made:
- Added `--json` flag to CLI command to output result as JSON
- Terminology updated to more accurately reflect object contents
- Code owner teams are always returned as an array
- Proper handling of inline comments
- Better logging for `scripts/check_ftr_code_owners.js`

Existing usage of the `@kbn/code-owners` package has been updated accordingly, without modifying outcomes.
@dolaru dolaru requested a review from pheyos December 12, 2024 13:42
@dolaru dolaru self-assigned this Dec 12, 2024
@dolaru dolaru requested review from a team as code owners December 12, 2024 13:42
@dolaru dolaru added release_note:skip Skip the PR/issue when compiling release notes backport:skip This commit does not require backporting labels Dec 12, 2024
Copy link
Member

@wayneseymour wayneseymour left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just one thing so far.

+ move `CODE_OWNERS_FILE` constant to `path.ts`
Copy link
Member

@pheyos pheyos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dolaru dolaru enabled auto-merge (squash) December 12, 2024 17:22
@dolaru dolaru merged commit 0dabc52 into elastic:main Dec 12, 2024
9 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

API count

id before after diff
@kbn/code-owners 10 12 +2

History

cc @dolaru

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants