From bf1c891e1a7e715a5415b6563bab24a16c23ad0a Mon Sep 17 00:00:00 2001 From: Miro HronĨok Date: Jan 11 2022 10:35:43 +0000 Subject: Make sure packagers are aware that the reply is from a robot --- diff --git a/fedscm_admin/utils.py b/fedscm_admin/utils.py index 6d4d8a4..e86e62b 100644 --- a/fedscm_admin/utils.py +++ b/fedscm_admin/utils.py @@ -730,6 +730,10 @@ def prompt_to_close_bad_ticket(issue_json, error='Invalid ticket body'): if click.confirm('Would you like to replace the default comment of ' '"{0}"?'.format(error)): comment_body = click.prompt('Please enter a comment') + else: + comment_body += ('\n\n\nNote that this comment was generated automatically. ' + 'If you need to speak to a human, open an issue at ' + 'https://pagure.io/releng/issues') pagure.close_issue(issue_id, comment_body, 'Invalid') if bug_id: BUGZILLA_CLIENT.comment(bug_id, comment_body)