autogits/workflow-pr/pr.go

16 lines
449 B
Go
Raw Normal View History

2024-12-02 10:26:51 +01:00
package main
2024-12-04 08:55:40 +01:00
import (
"src.opensuse.org/autogits/common/gitea-generated/models"
)
2024-12-02 10:26:51 +01:00
//go:generate mockgen -source=pr.go -destination=mock/pr.go -typed
2024-12-04 08:55:40 +01:00
type GiteaPRInterface interface {
2024-12-05 18:38:35 +01:00
GetPullRequestAndReviews(org, pkg string, num int64) (*models.PullRequest, []*models.PullReview, error)
2024-12-04 08:55:40 +01:00
GetAssociatedPrjGitPR(org, repo string, id int) (*models.PullRequest, error)
GetAssociatedPRs(org, repo string, id int) ([]*models.PullRequest, error)
}