From 886f33ac73ef61096f13669f4980dfead9da40c6 Mon Sep 17 00:00:00 2001 From: Danny Pfeiffer Date: Fri, 27 Dec 2024 12:33:29 -0700 Subject: [PATCH] account for merging multidevs and default required variables --- new_relic_deploy/new_relic_deploy.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/new_relic_deploy/new_relic_deploy.php b/new_relic_deploy/new_relic_deploy.php index 344496b..214f51e 100644 --- a/new_relic_deploy/new_relic_deploy.php +++ b/new_relic_deploy/new_relic_deploy.php @@ -27,7 +27,13 @@ // have good deploy markers, we gather data differently depending // on the context. -if (in_array($_POST['wf_type'], ['sync_code','sync_code_with_build'])) { +// Default required variables +$user = "bot@getpantheon.com"; +$description = 'Deploy to environment triggered via Pantheon'; +$revision = 'unknown'; +$changelog = 'Pantheon Automation'; + +if (in_array($_POST['wf_type'], ['sync_code','sync_code_with_build','merge_cloud_development_environment_into_dev'])) { // commit 'subject' $description = trim(`git log --pretty=format:"%s" -1`); $revision = trim(`git log --pretty=format:"%h" -1`);