Commit b807b42a authored by Andrea Leone's avatar Andrea Leone

Expose :protected field for ../tags/:tag_name API endpoint

parent 00bcd358
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment