Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion new_relic_deploy/new_relic_deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -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`);
Expand Down