mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Fix codeowners for tests in hassfest (#62204)
This commit is contained in:
parent
1a32b10af8
commit
26d8d82061
449
CODEOWNERS
449
CODEOWNERS
File diff suppressed because it is too large
Load Diff
@ -33,7 +33,7 @@ homeassistant/components/demo/weather @fabaff
|
||||
"""
|
||||
|
||||
|
||||
def generate_and_validate(integrations: dict[str, Integration]):
|
||||
def generate_and_validate(integrations: dict[str, Integration], config: Config):
|
||||
"""Generate CODEOWNERS."""
|
||||
parts = [BASE]
|
||||
|
||||
@ -56,6 +56,9 @@ def generate_and_validate(integrations: dict[str, Integration]):
|
||||
|
||||
parts.append(f"homeassistant/components/{domain}/* {' '.join(codeowners)}")
|
||||
|
||||
if (config.root / "tests/components" / domain).exists():
|
||||
parts.append(f"tests/components/{domain}/* {' '.join(codeowners)}")
|
||||
|
||||
parts.append(f"\n{INDIVIDUAL_FILES.strip()}")
|
||||
|
||||
return "\n".join(parts)
|
||||
@ -64,7 +67,7 @@ def generate_and_validate(integrations: dict[str, Integration]):
|
||||
def validate(integrations: dict[str, Integration], config: Config):
|
||||
"""Validate CODEOWNERS."""
|
||||
codeowners_path = config.root / "CODEOWNERS"
|
||||
config.cache["codeowners"] = content = generate_and_validate(integrations)
|
||||
config.cache["codeowners"] = content = generate_and_validate(integrations, config)
|
||||
|
||||
if config.specific_integrations:
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user