Class: Types::ReleaseType
- Inherits:
-
BaseObject
- Object
- GraphQL::Schema::Object
- BaseObject
- Types::ReleaseType
- Defined in:
- app/graphql/types/release_type.rb
Instance Method Summary collapse
Methods inherited from BaseObject
accepts, assignable?, authorization, authorization_scopes, authorize, authorized?, #current_user, #id
Methods included from Gitlab::Graphql::Present
Instance Method Details
#author ⇒ Object
57 58 59 |
# File 'app/graphql/types/release_type.rb', line 57 def Gitlab::Graphql::Loaders::BatchModelLoader.new(User, release.).find end |
#commit ⇒ Object
61 62 63 64 65 |
# File 'app/graphql/types/release_type.rb', line 61 def commit return if release.sha.nil? release.project.commit_by(oid: release.sha) end |