newModuleTagger: add suggested gh command

This commit is contained in:
2025-09-11 13:09:20 +02:00
parent d1ce46d3fe
commit b041cbe79a

View File

@@ -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("")