repocounter

package
v0.24.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: MIT 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 domain.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 domain.PullRequest)

AddSuccess adds a pullrequest that succeeded

func (*Counter) AddSuccessRepositories added in v0.17.0

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

AddSuccess 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