repocounter

package
v0.38.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	// contains filtered or unexported fields
}

Counter keeps track of succeeded and failed repositories

func NewCounter

func NewCounter() *Counter

NewCounter create a new repo counter

func (*Counter) AddError

func (r *Counter) AddError(err error, repo scm.Repository)

AddError add a failing repository together with the error that caused it

func (*Counter) AddSuccessPullRequest added in v0.17.0

func (r *Counter) AddSuccessPullRequest(repo scm.PullRequest)

AddSuccessPullRequest adds a pullrequest that succeeded

func (*Counter) AddSuccessRepositories added in v0.17.0

func (r *Counter) AddSuccessRepositories(repo scm.Repository)

AddSuccessRepositories adds a repository that succeeded

func (*Counter) Info

func (r *Counter) Info() string

Info returns a formated string about all repositories

Jump to

Keyboard shortcuts

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