@@ -9,54 +9,63 @@ import (
99 "net/url"
1010)
1111
12- // NullNotifier implements a blank downloader
12+ // NullDownloader implements a blank downloader
1313type NullDownloader struct {
1414}
1515
1616var (
1717 _ Downloader = & NullDownloader {}
1818)
1919
20- func (n NullDownloader ) SetContext (_ context.Context ) {
21- return
22- }
20+ // SetContext set context
21+ func (n NullDownloader ) SetContext (_ context.Context ) {}
2322
23+ // GetRepoInfo returns a repository information
2424func (n NullDownloader ) GetRepoInfo () (* Repository , error ) {
2525 return nil , & ErrNotSupported {}
2626}
2727
28+ // GetTopics return gitlab topics
2829func (n NullDownloader ) GetTopics () ([]string , error ) {
2930 return nil , & ErrNotSupported {}
3031}
3132
33+ // GetMilestones returns milestones
3234func (n NullDownloader ) GetMilestones () ([]* Milestone , error ) {
3335 return nil , & ErrNotSupported {}
3436}
3537
38+ // GetReleases returns releases
3639func (n NullDownloader ) GetReleases () ([]* Release , error ) {
3740 return nil , & ErrNotSupported {}
3841}
3942
43+ // GetLabels returns labels
4044func (n NullDownloader ) GetLabels () ([]* Label , error ) {
4145 return nil , & ErrNotSupported {}
4246}
4347
48+ // GetIssues returns issues according start and limit
4449func (n NullDownloader ) GetIssues (page , perPage int ) ([]* Issue , bool , error ) {
4550 return nil , false , & ErrNotSupported {}
4651}
4752
53+ // GetComments returns comments according issueNumber
4854func (n NullDownloader ) GetComments (issueNumber int64 ) ([]* Comment , error ) {
4955 return nil , & ErrNotSupported {}
5056}
5157
58+ // GetPullRequests returns pull requests according page and perPage
5259func (n NullDownloader ) GetPullRequests (page , perPage int ) ([]* PullRequest , bool , error ) {
5360 return nil , false , & ErrNotSupported {}
5461}
5562
63+ // GetReviews returns pull requests review
5664func (n NullDownloader ) GetReviews (pullRequestNumber int64 ) ([]* Review , error ) {
5765 return nil , & ErrNotSupported {}
5866}
5967
68+ // FormatGitURL return func to add authentification into remote URLs
6069func (n NullDownloader ) FormatGitURL () func (opts MigrateOptions , remoteAddr string ) (string , error ) {
6170 return func (opts MigrateOptions , remoteAddr string ) (string , error ) {
6271 if len (opts .AuthToken ) > 0 || len (opts .AuthUsername ) > 0 {
0 commit comments