transform

package
v1.2.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogTransformer

type LogTransformer struct {
	LogContent string
	Logfile    string
	TagID      string
}

LogTransformer is responsible to process the log file and do following transformation steps 1. Clean any ANSI chars and XTERM color created from cdk diff command 2. Transform additions and removals to markdown diff syntax 3. Create unique message header 4. truncate content if message is longer than GitHub API can handle

func NewLogTransformer

func NewLogTransformer(config *config.AppConfig) *LogTransformer

NewLogTransformer create new log transfer based on config.AppConfig

func (*LogTransformer) Process

func (t *LogTransformer) Process()

Process log file 1. Clean any ANSI chars and XTERM color created from cdk diff command 2. Transform additions and removals to markdown diff syntax 3. Create unique message header 4. truncate content if message is longer than GitHub API can handle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL