From b44b0a64537a54bcac7b38ce9aacf1c22b6b7ff6 Mon Sep 17 00:00:00 2001 From: Patrick Donnelly Date: Wed, 16 Jul 2025 14:19:43 -0400 Subject: [PATCH] script/redmine-upkeep: indicate log location in comments Signed-off-by: Patrick Donnelly --- src/script/redmine-upkeep.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/script/redmine-upkeep.py b/src/script/redmine-upkeep.py index e05409c8be35e..8e865b3043c59 100755 --- a/src/script/redmine-upkeep.py +++ b/src/script/redmine-upkeep.py @@ -40,6 +40,11 @@ except FileNotFoundError: GITHUB_TOKEN = os.getenv("GITHUB_TOKEN", GITHUB_TOKEN) GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == 'true' +GITHUB_SERVER_URL = os.getenv("GITHUB_SERVER_URL", "https://github.com/") +GITHUB_REPOSITORY = os.getenv("GITHUB_REPOSITORY", "ceph/ceph") +GITHUB_RUN_ID = os.getenv("GITHUB_RUN_ID", "nil") + +GITHUB_ACTION_LOG = f"{GITHUB_SERVER_URL}/{GITHUB_REPOSITORY}/actions/runs/{GITHUB_RUN_ID}" GITHUB_USER = os.getenv("GITHUB_USER", os.getenv("GITHUB_USER", getuser())) GITHUB_ORG = "ceph" @@ -772,6 +777,10 @@ h2. Update Payload
 {json.dumps(issue_update.get_update_payload(suppress_mail=True), indent=4)}
 
+ +h2. Update Log + +{GITHUB_ACTION_LOG} """ comment = comment.strip() issue_update.logger.debug("Created update failure comment:\n%s", comment) @@ -909,6 +918,8 @@ h2. Update Payload "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. + Update Log: {GITHUB_ACTION_LOG} + """ comment_body = textwrap.dedent(comment_body) log.debug(f"Leaving comment:\n{comment_body}") -- 2.39.5