From 02facadf10593f4966759f2fd03a184c128fc0d5 Mon Sep 17 00:00:00 2001 From: JamieDeMaria Date: Thu, 28 Mar 2024 11:46:41 -0400 Subject: [PATCH] wip add the link --- src/create_or_update_comment.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/create_or_update_comment.py b/src/create_or_update_comment.py index 8bdf0f87..b794ca70 100644 --- a/src/create_or_update_comment.py +++ b/src/create_or_update_comment.py @@ -49,15 +49,19 @@ def main(): break deployment_url = f"{org_url}/{deployment_name}/home" + changed_assets_url = f"{deployment_url}/asset-groups?changedInBranch=%5B%22CODE_VERSION%22%2C%22INPUTS%22%2C%22NEW%22%2C%22PARTITIONS_DEFINITION%22%5D" message = f"[View in Cloud]({deployment_url})" + changed_assets_message = f"[View Changed Assets]({changed_assets_url})" image_url = SUCCESS_IMAGE_URL if action == "pending": message = f"[Building...]({github_run_url})" + changed_assets_message = message image_url = PENDING_IMAGE_URL elif action == "failed": message = f"[Deploy failed]({github_run_url})" + changed_assets_message = message image_url = FAILED_IMAGE_URL status_image = f'[]({github_run_url})' @@ -67,9 +71,9 @@ def main(): message = f""" Your pull request is automatically being deployed to Dagster Cloud. -| Location | Status | Link | Updated | -| ----------------- | --------------- | ------- | --------------- | -| `{location_name}` | {status_image} | {message} | {time_str} | +| Location | Status | Link | Jump to Changed Assets | Updated | +| ----------------- | --------------- | ------- | --------------------------- | --------------- | +| `{location_name}` | {status_image} | {message} | {changed_assets_message} | {time_str} | """ if comment_to_update: