changedetector

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeDetector

type ChangeDetector struct {
	RepoUrl *url.URL
	Branch  string
	Watch   bool
	Log     *zap.SugaredLogger
	// contains filtered or unexported fields
}

ChangeDetector holds the configuration and is responsible to query GitHub for changes in the branch

func (*ChangeDetector) CheckChange

func (cd *ChangeDetector) CheckChange() error

func (*ChangeDetector) Init

func (cd *ChangeDetector) Init() error

Init looks up if the repo has already been cloned. If yes, it retrieves the local commit hash

func (*ChangeDetector) PostChangeAction

func (cd *ChangeDetector) PostChangeAction() error

func (*ChangeDetector) Run

func (cd *ChangeDetector) Run() error

Jump to

Keyboard shortcuts

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