From: Patrick Donnelly Date: Mon, 4 Aug 2025 14:48:48 +0000 (-0400) Subject: script/redmine-upkeep: do not raise commennt if upkeep-failed already present X-Git-Tag: testing/wip-vshankar-testing-20250813.085004-debug~6^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=77a16ef16395cd8db046937607df70d718502311;p=ceph-ci.git script/redmine-upkeep: do not raise commennt if upkeep-failed already present If the script is run manually on an issue, don't leave a new comment if we already have the issue tagged with upkeep-failed. Signed-off-by: Patrick Donnelly --- diff --git a/src/script/redmine-upkeep.py b/src/script/redmine-upkeep.py index c760cad68e8..63ee3011f91 100755 --- a/src/script/redmine-upkeep.py +++ b/src/script/redmine-upkeep.py @@ -784,6 +784,7 @@ h2. Update Payload new_tag = "upkeep-failed" if new_tag in current_tags: issue_update.logger.warning(f"'upkeep-failed' tag is already present") + return else: current_tags.append(new_tag) issue_update.logger.info(f"Adding '{new_tag}' tag.")