From fa808e229680b32b37492f1f171b2157860aa87b Mon Sep 17 00:00:00 2001 From: Rittik Dasgupta Date: Tue, 5 Nov 2024 13:40:45 +0530 Subject: [PATCH] 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}