debian-mirror-gitlab/lib/gitlab/audit/deploy_key_author.rb
2022-08-27 11:52:29 +05:30

15 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