summaryrefslogtreecommitdiffstats
path: root/modules/migrations/base
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2019-05-31 04:26:57 +0800
committertechknowlogick <techknowlogick@gitea.io>2019-05-30 16:26:57 -0400
commit7d12ec2abd452c6a8a5981537ce2c50440979e25 (patch)
tree450db74a634c633b4278890a9b1c389d1421689a /modules/migrations/base
parent43cf2f3b55de4a69183966da2a6e0167592c733c (diff)
downloadgitea-7d12ec2abd452c6a8a5981537ce2c50440979e25.tar.gz
gitea-7d12ec2abd452c6a8a5981537ce2c50440979e25.zip
improve github downloader on migrations (#7049)
* improve github downloader on migrations * fix tests * fix uppercase function parameters
Diffstat (limited to 'modules/migrations/base')
-rw-r--r--modules/migrations/base/downloader.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/migrations/base/downloader.go b/modules/migrations/base/downloader.go
index 9a09fdac0a..f28d0b61e7 100644
--- a/modules/migrations/base/downloader.go
+++ b/modules/migrations/base/downloader.go
@@ -11,9 +11,9 @@ type Downloader interface {
GetMilestones() ([]*Milestone, error)
GetReleases() ([]*Release, error)
GetLabels() ([]*Label, error)
- GetIssues(start, limit int) ([]*Issue, error)
+ GetIssues(page, perPage int) ([]*Issue, bool, error)
GetComments(issueNumber int64) ([]*Comment, error)
- GetPullRequests(start, limit int) ([]*PullRequest, error)
+ GetPullRequests(page, perPage int) ([]*PullRequest, error)
}
// DownloaderFactory defines an interface to match a downloader implementation and create a downloader