Skip to content

Commit

Permalink
enhancement(comment): modify deprecation callout in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rittikdasgupta committed Nov 5, 2024
1 parent c5a5a71 commit b141e99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 2 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17946,9 +17946,7 @@ ${downstreamAssets.hasMore ? `[See more downstream assets at Atlan](${create_com
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).`
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) {
Expand Down Expand Up @@ -17990,9 +17988,7 @@ async function createIssueComment(octokit, context, content, comment_id = null,
const {pull_request} = context.payload;

// 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).`
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).`

content = `<!-- ActionCommentIdentifier: atlan-dbt-action -->
${content}
Expand Down
8 changes: 2 additions & 6 deletions src/utils/create-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,7 @@ ${downstreamAssets.hasMore ? `[See more downstream assets at Atlan](${ATLAN_INST
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).`
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) {
Expand Down Expand Up @@ -164,9 +162,7 @@ export async function createIssueComment(octokit, context, content, comment_id =
const {pull_request} = context.payload;

// 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).`
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).`

content = `<!-- ActionCommentIdentifier: atlan-dbt-action -->
${content}
Expand Down

0 comments on commit b141e99

Please sign in to comment.