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
Click to show internal directories.
Click to hide internal directories.