]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
script/redmine-upkeep: do not raise commennt if upkeep-failed already present
authorPatrick Donnelly <pdonnell@ibm.com>
Mon, 4 Aug 2025 14:48:48 +0000 (10:48 -0400)
committerPatrick Donnelly <pdonnell@ibm.com>
Tue, 12 Aug 2025 16:01:24 +0000 (12:01 -0400)
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 <pdonnell@ibm.com>
src/script/redmine-upkeep.py

index c760cad68e8b5657f4244483ee28b043387e5c43..63ee3011f91c22bb4c1b805f0b52dac83ffb2653 100755 (executable)
@@ -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.")