mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Code owners - sort generated entries (#198901)
## Summary This PR adds sorting by path to the code owners generation. This improves readability and also avoid problems where ownership entries for nested test plugins (e.g. `x-pack/test/alerting_api_integration/common/plugins/alerts @elastic/response-ops`) are overridden with the empty top level test package entry (`x-pack/test`) when it's placed further down in the code owners file.
This commit is contained in:
parent
0e99a779e2
commit
e9fd052ef1
2 changed files with 548 additions and 543 deletions
1086
.github/CODEOWNERS
vendored
1086
.github/CODEOWNERS
vendored
File diff suppressed because it is too large
Load diff
|
@ -62,6 +62,11 @@ export const CodeownersCommand: GenerateCommand = {
|
|||
content = content.slice(0, ultStart);
|
||||
}
|
||||
|
||||
// sort genarated entries by directory name
|
||||
// this improves readability and makes sure that ownership for nested
|
||||
// test plugins is not overriden by the parent package's entry
|
||||
pkgs.sort((a, b) => a.directory.localeCompare(b.directory));
|
||||
|
||||
const newCodeowners = `${GENERATED_START}${pkgs
|
||||
.map(
|
||||
(pkg) =>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue