Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadTemplates ¶ added in v0.6.0
ReadTemplates reads the body, title and commit templates from files.
Types ¶
type DefaultFormatter ¶
type DefaultFormatter struct {
// contains filtered or unexported fields
}
The default formatter formats a message for a chat webhook
func NewDefaultFormatter ¶
func NewDefaultFormatter(config config.Config) (*DefaultFormatter, error)
Create a DefaultFormatter
func (DefaultFormatter) FormatEvent ¶
func (d DefaultFormatter) FormatEvent(event fluxevent.Event, exporter exporters.Exporter) msg.Message
Format plaintext message for an exporter for Flux event
Click to show internal directories.
Click to hide internal directories.