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

gpg_signature_type.rb « commit_signatures « types « graphql « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a845fff3e24f15ebac19da8ecc4caae4b959f9d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# frozen_string_literal: true

module Types
  module CommitSignatures
    class GpgSignatureType < Types::BaseObject
      graphql_name 'GpgSignature'
      description 'GPG signature for a signed commit'

      implements Types::CommitSignatureInterface

      authorize :download_code

      field :user, Types::UserType, null: true,
                                    description: 'User associated with the key.'

      field :gpg_key_user_name, GraphQL::Types::String,
                                null: true,
                                description: 'User name associated with the GPG key.'

      field :gpg_key_user_email, GraphQL::Types::String,
                                 null: true,
                                 description: 'User email associated with the GPG key.'

      field :gpg_key_primary_keyid, GraphQL::Types::String,
                                    null: true,
                                    description: 'ID of the GPG key.'
    end
  end
end