From 0954b5d28fdd33dd27a3ee03285d50a79858fe81 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Sat, 6 Aug 2022 13:48:24 -0400 Subject: [PATCH 1/5] fix(newsletter): add mjml dependency --- habitat/plan.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/habitat/plan.sh b/habitat/plan.sh index 8beddd65..28960c7b 100644 --- a/habitat/plan.sh +++ b/habitat/plan.sh @@ -2,6 +2,7 @@ pkg_name=site pkg_origin=codeforphilly pkg_maintainer="Code for Philly " pkg_scaffolding=emergence/scaffolding-site +pkg_deps=(jarvus/mjml) pkg_version() { scaffolding_detect_pkg_version From 5397308ed98884a82b3c7b382b26f5b59d5a5861 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Tue, 4 Oct 2022 20:55:07 -0400 Subject: [PATCH 2/5] chore(deps): bump laddr to v3.1.2 --- .holo/sources/laddr.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.holo/sources/laddr.toml b/.holo/sources/laddr.toml index 3d2fdd89..40b1936e 100644 --- a/.holo/sources/laddr.toml +++ b/.holo/sources/laddr.toml @@ -1,3 +1,3 @@ [holosource] url = "https://github.com/CodeForPhilly/laddr" -ref = "refs/tags/v3.1.0" +ref = "refs/tags/v3.1.2" From 9e64de29924ed02d03d1410466a9e9aeafcb49a4 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Sat, 6 Aug 2022 15:06:04 -0400 Subject: [PATCH 3/5] fix(slack): check isAvailable before using API --- .../Laddr/Project/afterRecordSave/slack-announce.php | 4 ++++ .../Laddr/ProjectUpdate/afterRecordSave/slack-announce.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/event-handlers/Laddr/Project/afterRecordSave/slack-announce.php b/event-handlers/Laddr/Project/afterRecordSave/slack-announce.php index 8c76bd02..6b3327d9 100644 --- a/event-handlers/Laddr/Project/afterRecordSave/slack-announce.php +++ b/event-handlers/Laddr/Project/afterRecordSave/slack-announce.php @@ -6,6 +6,10 @@ return; } +if (!Emergence\Slack\API::isAvailable()) { + return; +} + $attachment = [ 'pretext' => ':construction: A new project has been posted!', 'title' => $Project->getTitle(), diff --git a/event-handlers/Laddr/ProjectUpdate/afterRecordSave/slack-announce.php b/event-handlers/Laddr/ProjectUpdate/afterRecordSave/slack-announce.php index be180dbc..13d5fc59 100644 --- a/event-handlers/Laddr/ProjectUpdate/afterRecordSave/slack-announce.php +++ b/event-handlers/Laddr/ProjectUpdate/afterRecordSave/slack-announce.php @@ -8,6 +8,10 @@ return; } +if (!Emergence\Slack\API::isAvailable()) { + return; +} + $attachment = [ 'pretext' => ':tada: New project update!', 'title' => $ProjectUpdate->getTitle(), From b17810dc2bbfa3bf82915c1445e3ae4e250582b8 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Sat, 15 Oct 2022 12:14:58 -0500 Subject: [PATCH 4/5] chore(deps): bump laddr to v3.1.3 --- .holo/sources/laddr.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.holo/sources/laddr.toml b/.holo/sources/laddr.toml index 40b1936e..69acf523 100644 --- a/.holo/sources/laddr.toml +++ b/.holo/sources/laddr.toml @@ -1,3 +1,3 @@ [holosource] url = "https://github.com/CodeForPhilly/laddr" -ref = "refs/tags/v3.1.2" +ref = "refs/tags/v3.1.3" From 0a8cd6f94437b1db717983637a52fc22159cbe34 Mon Sep 17 00:00:00 2001 From: Chris Alfano Date: Sat, 15 Oct 2022 12:36:23 -0500 Subject: [PATCH 5/5] chore(deps): bump laddr to v3.1.4 --- .holo/sources/laddr.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.holo/sources/laddr.toml b/.holo/sources/laddr.toml index 69acf523..ae1d2eb1 100644 --- a/.holo/sources/laddr.toml +++ b/.holo/sources/laddr.toml @@ -1,3 +1,3 @@ [holosource] url = "https://github.com/CodeForPhilly/laddr" -ref = "refs/tags/v3.1.3" +ref = "refs/tags/v3.1.4"