diff --git a/tools/triage/issues_module_listing.py b/tools/triage/issues_module_listing.py index 29f9f7e7878..9d66791d361 100755 --- a/tools/triage/issues_module_listing.py +++ b/tools/triage/issues_module_listing.py @@ -13,9 +13,13 @@ Example usage: import argparse import dataclasses +import sys + from datetime import date from gitea_utils import gitea_json_issues_search +IS_ATTY = sys.stdout.isatty() + @dataclasses.dataclass class ModuleInfo: @@ -95,7 +99,8 @@ def compile_list(severity: str) -> None: new_label_name = label_iter["name"] print(f"ALERT: The name of label of '{current_module_name}' changed.") print(f"The new name is '{new_label_name}'.") - input("Press enter to continue: \n") + if IS_ATTY: + input("Press enter to continue: \n") modules[current_module_name].buglist.append(f"[#{number}]({html_url})") modules[current_module_name].buglist_full.append(f"* [{title}]({html_url}) - {created_at}\n")