From aafc303428c45d4812ddc5d00ea3cf29fe482e9c Mon Sep 17 00:00:00 2001 From: Khushboo Verma <43381712+vermakhushboo@users.noreply.github.com> Date: Thu, 29 Feb 2024 14:13:56 +0530 Subject: [PATCH] Add note for deployment activation. --- src/Appwrite/Vcs/Comment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Appwrite/Vcs/Comment.php b/src/Appwrite/Vcs/Comment.php index c1920c7fa4..d594df0929 100644 --- a/src/Appwrite/Vcs/Comment.php +++ b/src/Appwrite/Vcs/Comment.php @@ -109,10 +109,11 @@ class Comment $text .= "\n\n"; } - $text .= "Learn more about Appwrite [Function Deployments](https://appwrite.io/docs/functions).\n\n"; //TODO: Update link to documentation + $functionUrl = $protocol . '://' . $hostname . '/console/project-' . $projectId . '/functions/function-' . $functionId; + $text .= "> Only deployments on the production branch are activated automatically. If you'd like to activate this deployment, navigate to [your deployments]($functionUrl). Learn more about Appwrite [Function Deployments](https://appwrite.io/docs/functions).\n\n"; //TODO: Update link to documentation //TODO: Update did you know section $tip = $this->tips[array_rand($this->tips)]; - $text .= "> **💡 Did you know?** \n " . $tip . "\n\n"; + $text .= "**💡 Did you know?** \n " . $tip . "\n\n"; return $text; }