diff options
Diffstat (limited to 'app/graphql/types/commit_signatures/gpg_signature_type.rb')
-rw-r--r-- | app/graphql/types/commit_signatures/gpg_signature_type.rb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/app/graphql/types/commit_signatures/gpg_signature_type.rb b/app/graphql/types/commit_signatures/gpg_signature_type.rb new file mode 100644 index 00000000000..2a845fff3e2 --- /dev/null +++ b/app/graphql/types/commit_signatures/gpg_signature_type.rb @@ -0,0 +1,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 |