mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-24 03:14:03 +03:00
2f57e95a5d
refs https://www.notion.so/ghost/Marketing-Milestone-email-campaigns-1d2c9dee3cfa4029863edb16092ad5c4?pvs=4 - Added a `slack-notifications` repository which handles sending Slack messages to a URL as defined in our Ghost(Pro) config (also includes a global switch to disable the feature if needed) and listens to `MilestoneCreatedEvents`. - Added a `slack-notification` service which listens to the events on boot. - In order to have access to further information such as the reason why a Milestone email hasn't been sent, or the current ARR or Member value as comparison to the achieved milestone, I added a `meta` object to the `MilestoneCreatedEvent` which then gets accessible by the event subscriber. This avoid doing further requests to the DB as we need to have this information in relation to the event occurred. --------- Co-authored-by: Fabien "egg" O'Carroll <fabien@allou.is> |
||
---|---|---|
.. | ||
adapter-manager | ||
api-version-compatibility | ||
auth | ||
custom-redirects | ||
frontend-data-service | ||
link-tracking | ||
mega | ||
members | ||
mentions | ||
milestones | ||
newsletters | ||
notifications | ||
oembed | ||
permissions | ||
posts | ||
route-settings | ||
settings | ||
settings-helpers | ||
slack-notifications | ||
staff | ||
stripe | ||
themes | ||
url | ||
users | ||
webhooks | ||
labs.test.js | ||
limits.test.js | ||
slack.test.js | ||
xmlrpc.test.js |