blob: 69b42034826ef31eb8e7c386a98689fed02b0c02 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
module Gitlab
module Audit
class DeployTokenAuthor < Gitlab::Audit::NullAuthor
def initialize(name: nil)
super(id: -2, name: name)
end
# Events that are authored by a deploy token, should be
# shown as authored by `Deploy Token` in the UI.
def name
@name || _('Deploy Token')
end
end
end
end
|