This commit is contained in:
2025-01-27 17:43:50 +01:00
parent c1df08dc59
commit 6fc0607823
6 changed files with 137 additions and 13 deletions

View File

@@ -85,6 +85,7 @@ type Gitea interface {
GiteaReviewRequester
GiteaReviewer
GiteaPRFetcher
GiteaReviewFetcher
GetPullNotifications(since *time.Time) ([]*models.NotificationThread, error)
SetNotificationRead(notificationId int64) error
@@ -137,10 +138,9 @@ func (gitea *GiteaTransport) GetPullRequest(org, project string, num int64) (*mo
return pr.Payload, err
}
func (gitea *GiteaTransport) GetPullReviews(org, project string, num int64) ([]*models.PullReview, error) {
func (gitea *GiteaTransport) GetPullRequestReviews(org, project string, PRnum int64) ([]*models.PullReview, error) {
limit := int64(20)
var page int64
var allReviews []*models.PullReview
for {
@@ -149,7 +149,7 @@ func (gitea *GiteaTransport) GetPullReviews(org, project string, num int64) ([]*
WithDefaults().
WithOwner(org).
WithRepo(project).
WithIndex(num).
WithIndex(PRnum).
WithPage(&page).
WithLimit(&limit),
gitea.transport.DefaultAuthentication,