From 499f1469aac1301fc3b563eba1bad9f0076608b3 Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 12:02:37 +0530 Subject: [PATCH] enhancement(comment): remove deprecation callout from renderDownstreamAssetsComment --- dist/index.js | 11 ++--------- src/utils/create-comment.js | 11 ++--------- 2 files changed, 4 insertions(+), 18 deletions(-) diff --git a/dist/index.js b/dist/index.js index b09b895..6766fb7 100644 --- a/dist/index.js +++ b/dist/index.js @@ -17945,26 +17945,19 @@ ${downstreamAssets.hasMore ? `[See more downstream assets at Atlan](${create_com // Generating the "View asset in Atlan" button const viewAssetButton = `${getImageURL("atlan-logo", 15, 15)} [View asset in Atlan](${create_comment_ATLAN_INSTANCE_URL}/assets/${asset.guid}/overview?utm_source=dbt_github_action)`; - // Deprecation callout - const deprecationCallout = `:warning: Deprecation Notice: This action is scheduled for deprecation and will no longer be supported after June 2025. To ensure a smooth transition and continued functionality, please migrate to atlan-action by following the migration guide available [here](https://ask.atlan.com/hc/en-us/articles/11121331752719).` - // Generating the final comment based on the presence of downstream assets if (downstreamAssets.entities.length > 0) { return `${assetInfo} ${downstreamTable} -${viewAssetButton} - -${deprecationCallout}`; +${viewAssetButton}`; } else { return `${assetInfo} No downstream assets found. -${viewAssetButton} - -${deprecationCallout}`; +${viewAssetButton}`; } } diff --git a/src/utils/create-comment.js b/src/utils/create-comment.js index 9ceb780..8c3a0ee 100644 --- a/src/utils/create-comment.js +++ b/src/utils/create-comment.js @@ -119,26 +119,19 @@ ${downstreamAssets.hasMore ? `[See more downstream assets at Atlan](${ATLAN_INST // Generating the "View asset in Atlan" button const viewAssetButton = `${getImageURL("atlan-logo", 15, 15)} [View asset in Atlan](${ATLAN_INSTANCE_URL}/assets/${asset.guid}/overview?utm_source=dbt_github_action)`; - // Deprecation callout - const deprecationCallout = `:warning: Deprecation Notice: This action is scheduled for deprecation and will no longer be supported after June 2025. To ensure a smooth transition and continued functionality, please migrate to atlan-action by following the migration guide available [here](https://ask.atlan.com/hc/en-us/articles/11121331752719).` - // Generating the final comment based on the presence of downstream assets if (downstreamAssets.entities.length > 0) { return `${assetInfo} ${downstreamTable} -${viewAssetButton} - -${deprecationCallout}`; +${viewAssetButton}`; } else { return `${assetInfo} No downstream assets found. -${viewAssetButton} - -${deprecationCallout}`; +${viewAssetButton}`; } }