2018-12-05 23:21:45 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-12-26 22:10:19 +05:30
|
|
|
class TagsFinder < GitRefsFinder
|
2016-09-29 09:46:39 +05:30
|
|
|
def initialize(repository, params)
|
2019-12-26 22:10:19 +05:30
|
|
|
super(repository, params)
|
2016-09-29 09:46:39 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def execute
|
2019-12-26 22:10:19 +05:30
|
|
|
tags = repository.tags_sorted_by(sort)
|
|
|
|
tags = by_search(tags)
|
|
|
|
tags
|
2016-09-29 09:46:39 +05:30
|
|
|
end
|
|
|
|
end
|