From b041cbe79a0af451850ad28b9bee34ec74d90cfc Mon Sep 17 00:00:00 2001 From: h7x4 Date: Thu, 11 Sep 2025 13:09:20 +0200 Subject: [PATCH] newModuleTagger: add suggested gh command --- newModuleTagger/find_prs.py | 7 +++++++ 1 file changed, 7 insertions(+) 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("")