gitlab-org--gitlab-foss/lib/gitlab/audit/deploy_key_author.rb

16 lines
267 B
Ruby

# frozen_string_literal: true
module Gitlab
module Audit
class DeployKeyAuthor < Gitlab::Audit::NullAuthor
def initialize(name: nil)
super(id: -3, name: name)
end
def name
@name || _('Deploy Key')
end
end
end
end