19 lines
393 B
Go
19 lines
393 B
Go
package interfaces
|
|
|
|
import "src.opensuse.org/autogits/common"
|
|
|
|
//go:generate mockgen -source=state_checker.go -destination=../mock/state_checker.go -typed -package mock_main
|
|
|
|
|
|
type StateChecker interface {
|
|
VerifyProjectState(configs *common.AutogitConfig) ([]*PRToProcess, error)
|
|
CheckRepos() error
|
|
ConsistencyCheckProcess() error
|
|
}
|
|
|
|
type PRToProcess struct {
|
|
Org, Repo, Branch string
|
|
}
|
|
|
|
|