Welcome to mirror list, hosted at ThFree Co, Russian Federation.

commit_data_type.rb « blame « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: faac34b06f4dd2e859b4490b63436b6c6e82b6de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

module Types
  module Blame
    # rubocop: disable Graphql/AuthorizeTypes
    class CommitDataType < BaseObject
      # This is presented through `Repository` that has its own authorization
      graphql_name 'CommitData'

      field :age_map_class, GraphQL::Types::String, null: false, description: 'CSS class for age of commit.'
      field :author_avatar, GraphQL::Types::String, null: false, description: 'Link to author avatar.'
      field :commit_author_link, GraphQL::Types::String, null: false, description: 'Link to the commit author.'
      field :commit_link, GraphQL::Types::String, null: false, description: 'Link to the commit.'
      field :project_blame_link, GraphQL::Types::String,
        null: true, description: 'Link to blame prior to the change.'
      field :time_ago_tooltip, GraphQL::Types::String, null: false, description: 'Time of commit.'
    end
    # rubocop: enable Graphql/AuthorizeTypes
  end
end