From d68cc52c6a700873f92292522ccfe881a88cf47a Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Aug 13 2022 01:36:17 +0000 Subject: Clarify the invalid ticket error message Packagers often ignore or misunderstand the existing message and try to leave a comment or reopen the ticket. Hopefully, this change will help alleviate that. --- diff --git a/fedscm_admin/utils.py b/fedscm_admin/utils.py index 8b37cae..b94b23a 100644 --- a/fedscm_admin/utils.py +++ b/fedscm_admin/utils.py @@ -721,9 +721,13 @@ def prompt_to_close_bad_ticket(issue_json, error='Invalid ticket body'): '"{0}"?'.format(error)): comment_body = click.prompt('Please enter a comment') else: + releng 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') + 'If you believe there was an issue with the automated processing ' ++ 'of this ticket, please [file a releng issue](https://pagure.io/releng/new_issue).\n\n' + 'Do not leave a comment here, as nobody will see it, ' + 'and the script will automatically close this ticket ' + 'the next time it runs.') pagure.close_issue(issue_id, comment_body, 'Invalid') if bug_id: BUGZILLA_CLIENT.comment(bug_id, comment_body)