diff --git a/dist/index.js b/dist/index.js index 4baa4ec..f8aa663 100644 --- a/dist/index.js +++ b/dist/index.js @@ -17980,8 +17980,15 @@ async function checkCommentExists(octokit, context) { async function createIssueComment(octokit, context, content, comment_id = null, forceNewComment = false) { const {pull_request} = context.payload; + // Deprecation callout + 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; + content = ` -${content}` +${content} + +${deprecationCallout}` const commentObj = { ...context.repo, diff --git a/src/utils/create-comment.js b/src/utils/create-comment.js index 1ed05d9..e16afb6 100644 --- a/src/utils/create-comment.js +++ b/src/utils/create-comment.js @@ -154,8 +154,15 @@ export async function checkCommentExists(octokit, context) { export async function createIssueComment(octokit, context, content, comment_id = null, forceNewComment = false) { const {pull_request} = context.payload; + // Deprecation callout + 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; + content = ` -${content}` +${content} + +${deprecationCallout}` const commentObj = { ...context.repo,