Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dq 470 add deprecation callout #145

Draft
wants to merge 8 commits into
base: fix-curl-downstream-asset
Choose a base branch
from
9 changes: 8 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<!-- ActionCommentIdentifier: atlan-dbt-action -->
${content}`
${content}

${deprecationCallout}`

const commentObj = {
...context.repo,
Expand Down
9 changes: 8 additions & 1 deletion src/utils/create-comment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `<!-- ActionCommentIdentifier: atlan-dbt-action -->
${content}`
${content}

${deprecationCallout}`

const commentObj = {
...context.repo,
Expand Down
Loading