diff --git a/newModuleTagger/find_prs.py b/newModuleTagger/find_prs.py index 564e1fe..544543a 100755 --- a/newModuleTagger/find_prs.py +++ b/newModuleTagger/find_prs.py @@ -140,6 +140,13 @@ def print_pr(pr: dict[str, any]): for file in pr["files"]: tqdm.write(f' [{CHANGE_TYPE_COLORS.get(file['changeType'], file['changeType'])}] {color_file_path(file['path'], file['changeType'])}') tqdm.write("") + if any([ + file['path'].startswith("nixos/tests/") and file['changeType'] == 'ADDED' for file in pr['files'] + ]): + tqdm.write(f'\033[1mgh pr edit {pr["number"]} --add-label "8.has: module (new),8.has: tests"\033[0m') + else: + tqdm.write(f'\033[1mgh pr edit {pr["number"]} --add-label "8.has: module (new)"\033[0m') + tqdm.write("") tqdm.write("------------------------------------------------------------------------------") tqdm.write("")