Module: CollavreLinear::CommentSyncObserver

Extended by:
ActiveSupport::Concern
Defined in:
app/observers/collavre_linear/comment_sync_observer.rb

Overview

Auto-triggers an outbound Linear comment sync when a human posts a chat message in the Main topic of a creative that is linked to a Linear issue.

Mixed into Collavre::Comment via the engine's to_prepare block:

Collavre::Comment.include CollavreLinear::CommentSyncObserver

Mirrors CreativeSyncObserver: the transient skip_linear_sync flag lets the inbound applier suppress the echo when it mirrors a Linear comment locally (otherwise the mirrored comment would bounce straight back out to Linear).