nitter/nitters/gitea/api.go
Peter Kurfer d51a05fea1
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
test(gitea): delete previously created reviews
2023-03-09 14:39:55 +01:00

19 lines
634 B
Go

package gitea
import "code.gitea.io/sdk/gitea"
type PullReviewManager interface {
CreatePullReview(owner, repo string, index int64, opt gitea.CreatePullReviewOptions) (*gitea.PullReview, *gitea.Response, error)
ListPullReviews(owner, repo string, index int64, opt gitea.ListPullReviewsOptions) ([]*gitea.PullReview, *gitea.Response, error)
DeletePullReview(owner, repo string, index, id int64) (*gitea.Response, error)
}
type WhoAmIer interface {
GetMyUserInfo() (*gitea.User, *gitea.Response, error)
}
//go:generate mockery --name Client --filename gitea_client.mock.go
type Client interface {
PullReviewManager
WhoAmIer
}