debian-mirror-gitlab/lib/gitlab/ssh/commit.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
541 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
module Gitlab
module Ssh
class Commit < Gitlab::SignedCommit
private
def signature_class
CommitSignatures::SshSignature
end
def attributes
signature = ::Gitlab::Ssh::Signature.new(signature_text, signed_text, @commit.committer_email)
{
commit_sha: @commit.sha,
project: @commit.project,
key_id: signature.signed_by_key&.id,
verification_status: signature.verification_status
}
end
end
end
end