newModuleTagger: add suggested gh command
This commit is contained in:
@@ -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("")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user