2019-09-04 21:01:54 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
module Types
|
|
|
|
module Tree
|
2019-09-30 21:07:59 +05:30
|
|
|
# rubocop: disable Graphql/AuthorizeTypes
|
|
|
|
# This is presented through `Repository` that has its own authorization
|
2019-09-04 21:01:54 +05:30
|
|
|
class SubmoduleType < BaseObject
|
|
|
|
implements Types::Tree::EntryType
|
|
|
|
|
|
|
|
graphql_name 'Submodule'
|
2019-09-30 21:07:59 +05:30
|
|
|
|
2020-03-13 15:44:24 +05:30
|
|
|
field :web_url, type: GraphQL::STRING_TYPE, null: true,
|
|
|
|
description: 'Web URL for the sub-module'
|
|
|
|
field :tree_url, type: GraphQL::STRING_TYPE, null: true,
|
|
|
|
description: 'Tree URL for the sub-module'
|
2019-09-04 21:01:54 +05:30
|
|
|
end
|
2019-09-30 21:07:59 +05:30
|
|
|
# rubocop: enable Graphql/AuthorizeTypes
|
2019-09-04 21:01:54 +05:30
|
|
|
end
|
|
|
|
end
|