[Feature Request] Email Updates
-
@thetomester13 Both sound great to me! Let us know if you need any help.
-
@girish this took longer than expected, but here is the Merge Request. Happy to get your notes on it and make adjustments where needed. Turns out getting the Release Body for both Github and Gitlab was challenging since their API's do not line up 1-to-1. Hopefully this is a decent solution around that.
-
@thetomester13 thanks! I merged it. It seems that highlight.js which comes from helper-markdown is deprecated. I see this when installing (there's upstream issues https://github.com/helpers/helper-markdown/issues/15 and https://github.com/helpers/helper-markdown/issues/14 about this):
> highlight.js@9.18.5 postinstall /home/girish/yellowtent/releasebell/node_modules/highlight.js > node deprecated.js -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* Verion 9 of Highlight.js has reached EOL. It will no longer be supported or receive security updates in the future. Please upgrade to version 10 or encourage your indirect dependencies to do so. For more info: https://github.com/highlightjs/highlight.js/issues/2877 https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md -*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
-
girish Staffreplied to thetomester13 on May 11, 2021, 12:13 AM last edited by girish May 11, 2021, 12:13 AM
@thetomester13 Given that it's really just one file - https://github.com/helpers/helper-markdown/blob/master/index.js, do you think we can just remove usage of that module entirely? Just put that file in releasebell itself (or make a function) and bump the deps?
-
@girish yikes, totally missed the fact that helpers/helper-markdown is not really supported anymore, quite unfortunate as it seems the author just stopped responding
do you think we can just ... put that file in releasebell itself (or make a function) and bump the deps?
Anyway, yes, I think this is a fine way to move forward. Unfortunately, the now-deprecated module was the best solution I found to render Markdown in handlebars. And as you mentioned, since it's quite straight forward, pulling it into ReleaseBell probably wouldn't be a big deal. Even more so, I don't believe we use the
hightlight
method defined on line 40, so we shouldn't even need to bring in thehighlight.js
package. -
@thetomester13 I guess in the long run we can move this to markdown-it which seems to be properly supported
-
@nebulon that's a great point! I was always looking at how to integrate Markdown rendering with the Handlebars templating, but we could simply try to get Markdown as HTML and then pass it into the email template.
-
@thetomester13 we are running the new version currently for testing still and it is a huge improvement. Thanks @thetomester13 totally worth it
-
that makes me happy to hear! Glad I can contribute!
@girish curious, what was causing the crash?
-
@girish said in [Feature Request] Email Updates:
Indeed, it's pretty great. In fact, just one day in, I don't know how I lived without this for so long
What's the workflow that so much better?
-
-
@thetomester13 ah yes, sorry forgot about this. We are using it already for some time now and initial issues were fixed, so no reason not to update it. Will go ahead now.