Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/audit/deploy_key_author.rb')
-rw-r--r--lib/gitlab/audit/deploy_key_author.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/gitlab/audit/deploy_key_author.rb b/lib/gitlab/audit/deploy_key_author.rb
new file mode 100644
index 00000000000..53029e9cc1c
--- /dev/null
+++ b/lib/gitlab/audit/deploy_key_author.rb
@@ -0,0 +1,15 @@
+# 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