Files
gitlab-foss/lib/gitlab/audit/deploy_key_author.rb
2024-07-17 15:24:19 +00:00

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