diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2021-08-22 00:47:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-22 00:47:45 +0200 |
commit | cee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21 (patch) | |
tree | 41cf982a5b7a759645238fa7a99446e09761d359 /modules/migrations/base/null_downloader.go | |
parent | 2d1935acc7b2a6ecc797346625b80caa7e0b5787 (diff) | |
download | gitea-cee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21.tar.gz gitea-cee5f7c5e2bfe3132d7089a6bffc1a4bfc392e21.zip |
Add migrate from OneDev (#16356)
* Use context to simplify logic.
* Added migration from OneDev.
This PR adds [OneDev](https://code.onedev.io/) as migration source.
Supported:
- [x] Milestones
- [x] Issues
- [x] Pull Requests
- [x] Comments
- [x] Reviews
- [x] Labels
Diffstat (limited to 'modules/migrations/base/null_downloader.go')
-rw-r--r-- | modules/migrations/base/null_downloader.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/migrations/base/null_downloader.go b/modules/migrations/base/null_downloader.go index 53a536709d..c64d0e2633 100644 --- a/modules/migrations/base/null_downloader.go +++ b/modules/migrations/base/null_downloader.go @@ -50,7 +50,7 @@ func (n NullDownloader) GetIssues(page, perPage int) ([]*Issue, bool, error) { return nil, false, &ErrNotSupported{Entity: "Issues"} } -// GetComments returns comments according issueNumber +// GetComments returns comments according the options func (n NullDownloader) GetComments(GetCommentOptions) ([]*Comment, bool, error) { return nil, false, &ErrNotSupported{Entity: "Comments"} } @@ -61,7 +61,7 @@ func (n NullDownloader) GetPullRequests(page, perPage int) ([]*PullRequest, bool } // GetReviews returns pull requests review -func (n NullDownloader) GetReviews(pullRequestNumber int64) ([]*Review, error) { +func (n NullDownloader) GetReviews(pullRequestContext IssueContext) ([]*Review, error) { return nil, &ErrNotSupported{Entity: "Reviews"} } |