autogits/workflow-pr/pr.go
2024-12-09 00:39:55 +01:00

16 lines
453 B
Go

package main
import (
"src.opensuse.org/autogits/common/gitea-generated/models"
)
//go:generate mockgen -source=pr.go -destination=mock/pr.go -typed
type GiteaPRInterface interface {
GetPullRequestAndReviews(org, pkg string, num int64) (*models.PullRequest, []*models.PullReview, error)
GetAssociatedPrjGitPR(org, repo string, id int64) (*models.PullRequest, error)
GetAssociatedPRs(org, repo string, id int64) ([]*models.PullRequest, error)
}