pd-oncall-chat-topic icon indicating copy to clipboard operation
pd-oncall-chat-topic copied to clipboard

lambda: preserve topic linking

Open maxenglander opened this issue 4 years ago • 0 comments

It's a shame to lose topic linking. For example, I would like to set a topic like:

USER is on-call for <!subteam^SID>

I can do this by setting sched_name to <!subteam^SID>.

Unfortunately, with the current update_slack_topic logic, this gets turned into:

USER is on-call for <!subteam^SID> | USER is on-call for

This PR changes how the current topic is searched for the first non-linking | symbol in a way that preserves linking.

maxenglander avatar Dec 01 '20 17:12 maxenglander