Expose :protected field for ../tags/:tag_name API endpoint
This commit is contained in:
parent
00bcd3584a
commit
b807b42aa3
|
@ -1263,6 +1263,11 @@ module API
|
|||
options[:project].releases.find_by(tag: repo_tag.name)
|
||||
end
|
||||
# rubocop: enable CodeReuse/ActiveRecord
|
||||
|
||||
expose :protected do |repo_tag, options|
|
||||
::ProtectedTag.protected?(options[:project], repo_tag.name)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
class Runner < Grape::Entity
|
||||
|
|
Loading…
Reference in New Issue