package main import "src.opensuse.org/autogits/common" //go:generate mockgen -source=maintainership.go -destination=mock/maintainership.go -typed type GiteaMaintainershipInterface interface { FetchMaintainershipFile(org, prj, branch string) ([]byte, error) } func MaintainerListForProject(gitea GiteaMaintainershipInterface, org, branch string) ([]string, error) { _, err := gitea.FetchMaintainershipFile(org, common.DefaultGitPrj, branch) if err != nil { return nil, err } return nil, nil } func MaintainerListForPackage(gitea GiteaMaintainershipInterface, org, pkg, branch string) ([]string, error) { _, err := gitea.FetchMaintainershipFile(org, pkg, branch) if err != nil { return nil, err } return []string{}, nil }