diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-16 00:08:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-07-16 00:08:42 +0300 |
commit | 040d734373c9c2db3c70eb81798db038576847ca (patch) | |
tree | b2bdeaa38a9c13a1ea7e59083755e1bf4c7e6b22 /app/events/projects | |
parent | b302502690b2e1422a4ef6abebdcf3ff4dc88543 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/events/projects')
-rw-r--r-- | app/events/projects/project_path_changed_event.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/app/events/projects/project_path_changed_event.rb b/app/events/projects/project_path_changed_event.rb new file mode 100644 index 00000000000..965f9258d3f --- /dev/null +++ b/app/events/projects/project_path_changed_event.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +module Projects + class ProjectPathChangedEvent < ::Gitlab::EventStore::Event + def schema + { + 'type' => 'object', + 'properties' => { + 'project_id' => { 'type' => 'integer' }, + 'namespace_id' => { 'type' => 'integer' }, + 'root_namespace_id' => { 'type' => 'integer' }, + 'old_path' => { 'type' => 'string' }, + 'new_path' => { 'type' => 'string' } + }, + 'required' => %w[project_id namespace_id root_namespace_id old_path new_path] + } + end + end +end |