From c26bf3b731878b35e63759eaeaba80c9bb75f9c0 Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 11:59:01 +0530 Subject: [PATCH 1/5] enhancement(comment): add deprecation callout in comment --- adapters/integrations/github-integration.js | 8 +++++++- adapters/integrations/gitlab-integration.js | 8 +++++++- dist/index.js | 16 ++++++++++++++-- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/adapters/integrations/github-integration.js b/adapters/integrations/github-integration.js index ace67ff..46ce64c 100644 --- a/adapters/integrations/github-integration.js +++ b/adapters/integrations/github-integration.js @@ -35,6 +35,7 @@ import IntegrationInterface from "./contract/contract.js"; import github from "@actions/github"; import logger from "../logger/logger.js"; import stringify from "json-stringify-safe"; + var headSHA; const integrationName = "github"; export default class GitHubIntegration extends IntegrationInterface { @@ -915,8 +916,13 @@ export default class GitHubIntegration extends IntegrationInterface { 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).` + content = ` -${content}`; +${content} + +${deprecationCallout}`; const commentObj = { ...context.repo, diff --git a/adapters/integrations/gitlab-integration.js b/adapters/integrations/gitlab-integration.js index 5c457e7..f591cb4 100644 --- a/adapters/integrations/gitlab-integration.js +++ b/adapters/integrations/gitlab-integration.js @@ -43,6 +43,7 @@ import { Gitlab } from "@gitbeaker/rest"; import IntegrationInterface from "./contract/contract.js"; import logger from "../logger/logger.js"; import stringify from "json-stringify-safe"; + const integrationName = "gitlab"; var CI_MERGE_REQUEST_IID; @@ -599,8 +600,13 @@ export default class GitLabIntegration extends IntegrationInterface { "createIssueComment" ); + // 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).` + content = ` -${content}`; +${content} + +${deprecationCallout}`; if (IS_DEV) { logger.withInfo( diff --git a/dist/index.js b/dist/index.js index 05aa392..12026ae 100644 --- a/dist/index.js +++ b/dist/index.js @@ -25595,6 +25595,7 @@ var github = __nccwpck_require__(5438); + var headSHA; const integrationName = "github"; class GitHubIntegration extends IntegrationInterface { @@ -26475,8 +26476,13 @@ class GitHubIntegration extends IntegrationInterface { 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).` + content = ` -${content}`; +${content} + +${deprecationCallout}`; const commentObj = { ...context.repo, @@ -34200,6 +34206,7 @@ var { + const gitlab_integration_integrationName = "gitlab"; var CI_MERGE_REQUEST_IID; @@ -34756,8 +34763,13 @@ class GitLabIntegration extends IntegrationInterface { "createIssueComment" ); + // 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).` + content = ` -${content}`; +${content} + +${deprecationCallout}`; if (IS_DEV) { logger_logger.withInfo( From eed40064d235a5993708a42d7a36d7e14bf4ffd1 Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 13:31:18 +0530 Subject: [PATCH 2/5] enhancement(comment): add horizontal line before deprecation callout --- adapters/integrations/github-integration.js | 6 +++++- adapters/integrations/gitlab-integration.js | 6 +++++- dist/index.js | 12 ++++++++++-- 3 files changed, 20 insertions(+), 4 deletions(-) diff --git a/adapters/integrations/github-integration.js b/adapters/integrations/github-integration.js index 46ce64c..5e143b1 100644 --- a/adapters/integrations/github-integration.js +++ b/adapters/integrations/github-integration.js @@ -917,7 +917,11 @@ export default class GitHubIntegration extends IntegrationInterface { 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 = ` ${content} diff --git a/adapters/integrations/gitlab-integration.js b/adapters/integrations/gitlab-integration.js index f591cb4..4ca3f8b 100644 --- a/adapters/integrations/gitlab-integration.js +++ b/adapters/integrations/gitlab-integration.js @@ -601,7 +601,11 @@ export default class GitLabIntegration extends IntegrationInterface { ); // 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 = ` ${content} diff --git a/dist/index.js b/dist/index.js index 12026ae..8cdb9da 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26477,7 +26477,11 @@ class GitHubIntegration extends IntegrationInterface { 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 = ` ${content} @@ -34764,7 +34768,11 @@ class GitLabIntegration extends IntegrationInterface { ); // 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 = ` ${content} From fa808e229680b32b37492f1f171b2157860aa87b Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 13:40:45 +0530 Subject: [PATCH 3/5] enhancement(comment): add horizontal line before deprecation callout --- adapters/integrations/github-integration.js | 8 +++----- adapters/integrations/gitlab-integration.js | 8 +++----- dist/index.js | 16 ++++++---------- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/adapters/integrations/github-integration.js b/adapters/integrations/github-integration.js index 5e143b1..7232303 100644 --- a/adapters/integrations/github-integration.js +++ b/adapters/integrations/github-integration.js @@ -917,12 +917,10 @@ export default class GitHubIntegration extends IntegrationInterface { 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).` + deprecationCallout = "\n\n---\n\n" + deprecationCallout; + content = ` ${content} diff --git a/adapters/integrations/gitlab-integration.js b/adapters/integrations/gitlab-integration.js index 4ca3f8b..8ea93c2 100644 --- a/adapters/integrations/gitlab-integration.js +++ b/adapters/integrations/gitlab-integration.js @@ -601,12 +601,10 @@ export default class GitLabIntegration extends IntegrationInterface { ); // 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).` + deprecationCallout = "\n\n---\n\n" + deprecationCallout; + content = ` ${content} diff --git a/dist/index.js b/dist/index.js index 8cdb9da..a1a6a63 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26477,12 +26477,10 @@ class GitHubIntegration extends IntegrationInterface { 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).` + deprecationCallout = "\n\n---\n\n" + deprecationCallout; + content = ` ${content} @@ -34768,12 +34766,10 @@ class GitLabIntegration extends IntegrationInterface { ); // 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).` + deprecationCallout = "\n\n---\n\n" + deprecationCallout; + content = ` ${content} From dc9a248c475f929045d385bf3b386de02211f368 Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 13:44:44 +0530 Subject: [PATCH 4/5] enhancement(comment): add horizontal line before deprecation callout --- adapters/integrations/github-integration.js | 2 +- adapters/integrations/gitlab-integration.js | 2 +- dist/index.js | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/adapters/integrations/github-integration.js b/adapters/integrations/github-integration.js index 7232303..37a9f09 100644 --- a/adapters/integrations/github-integration.js +++ b/adapters/integrations/github-integration.js @@ -917,7 +917,7 @@ export default class GitHubIntegration extends IntegrationInterface { 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).` + let 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).` deprecationCallout = "\n\n---\n\n" + deprecationCallout; diff --git a/adapters/integrations/gitlab-integration.js b/adapters/integrations/gitlab-integration.js index 8ea93c2..1459e9f 100644 --- a/adapters/integrations/gitlab-integration.js +++ b/adapters/integrations/gitlab-integration.js @@ -601,7 +601,7 @@ export default class GitLabIntegration extends IntegrationInterface { ); // 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).` + let 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).` deprecationCallout = "\n\n---\n\n" + deprecationCallout; diff --git a/dist/index.js b/dist/index.js index a1a6a63..967868c 100644 --- a/dist/index.js +++ b/dist/index.js @@ -26477,7 +26477,7 @@ class GitHubIntegration extends IntegrationInterface { 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).` + let 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).` deprecationCallout = "\n\n---\n\n" + deprecationCallout; @@ -34766,7 +34766,7 @@ class GitLabIntegration extends IntegrationInterface { ); // 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).` + let 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).` deprecationCallout = "\n\n---\n\n" + deprecationCallout; From 3b79e566da53de90574fcfa4dc75541e635159ee Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Thu, 7 Nov 2024 10:59:38 +0530 Subject: [PATCH 5/5] doc: add deprecation callout in readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index eba597d..48fbc5e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,9 @@ ![atlan<>dbt](https://user-images.githubusercontent.com/14099191/209542321-54d5557e-8abf-4d9a-9f6d-dcacb856f25f.png) +> [!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](https://github.com/marketplace/actions/atlan-action) by following the migration guide available [here](https://ask.atlan.com/hc/en-us/articles/11121331752719). + ## Overview _Have you ever changed a dbt model only to later find it broke a downstream table or dashboard? 💔_