|
|
|
@ -19,52 +19,52 @@ func (n NullDownloader) SetContext(_ context.Context) {} |
|
|
|
|
|
|
|
|
|
// GetRepoInfo returns a repository information
|
|
|
|
|
func (n NullDownloader) GetRepoInfo() (*Repository, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "RepoInfo"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "RepoInfo"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetTopics return repository topics
|
|
|
|
|
func (n NullDownloader) GetTopics() ([]string, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "Topics"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "Topics"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetMilestones returns milestones
|
|
|
|
|
func (n NullDownloader) GetMilestones() ([]*Milestone, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "Milestones"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "Milestones"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetReleases returns releases
|
|
|
|
|
func (n NullDownloader) GetReleases() ([]*Release, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "Releases"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "Releases"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetLabels returns labels
|
|
|
|
|
func (n NullDownloader) GetLabels() ([]*Label, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "Labels"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "Labels"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetIssues returns issues according start and limit
|
|
|
|
|
func (n NullDownloader) GetIssues(page, perPage int) ([]*Issue, bool, error) { |
|
|
|
|
return nil, false, &ErrNotSupported{Entity: "Issues"} |
|
|
|
|
return nil, false, ErrNotSupported{Entity: "Issues"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetComments returns comments of an issue or PR
|
|
|
|
|
func (n NullDownloader) GetComments(commentable Commentable) ([]*Comment, bool, error) { |
|
|
|
|
return nil, false, &ErrNotSupported{Entity: "Comments"} |
|
|
|
|
return nil, false, ErrNotSupported{Entity: "Comments"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetAllComments returns paginated comments
|
|
|
|
|
func (n NullDownloader) GetAllComments(page, perPage int) ([]*Comment, bool, error) { |
|
|
|
|
return nil, false, &ErrNotSupported{Entity: "AllComments"} |
|
|
|
|
return nil, false, ErrNotSupported{Entity: "AllComments"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetPullRequests returns pull requests according page and perPage
|
|
|
|
|
func (n NullDownloader) GetPullRequests(page, perPage int) ([]*PullRequest, bool, error) { |
|
|
|
|
return nil, false, &ErrNotSupported{Entity: "PullRequests"} |
|
|
|
|
return nil, false, ErrNotSupported{Entity: "PullRequests"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// GetReviews returns pull requests review
|
|
|
|
|
func (n NullDownloader) GetReviews(reviewable Reviewable) ([]*Review, error) { |
|
|
|
|
return nil, &ErrNotSupported{Entity: "Reviews"} |
|
|
|
|
return nil, ErrNotSupported{Entity: "Reviews"} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// FormatCloneURL add authentication into remote URLs
|
|
|
|
|