scripts: get_maintainer: check maintenance status
Error if an area is set as maintained but it has no maintainers assigned. Signed-off-by: Gerard Marull-Paretas <gerard@teslabs.com>
This commit is contained in:
parent
86e2030ba8
commit
4753005c55
1 changed files with 3 additions and 0 deletions
|
@ -509,6 +509,9 @@ def _check_maintainers(maints_path, yaml):
|
|||
ferr("either 'files' or 'files-regex' (or both) must be specified "
|
||||
"for area '{}'".format(area_name))
|
||||
|
||||
if not area_dict.get("maintainers") and area_dict.get("status") == "maintained":
|
||||
ferr("maintained area '{}' with no maintainers".format(area_name))
|
||||
|
||||
for list_name in "maintainers", "collaborators", "inform", "files", \
|
||||
"files-regex", "labels", "tags", "tests":
|
||||
if list_name in area_dict:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue