diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-22 18:06:55 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-22 18:06:55 +0300 |
commit | 793034a90509193ebf2ad14ed8e5eea10f7c6b4a (patch) | |
tree | c6326ec316c71dad77ab8f40b4eedf5093544403 /app/services/post_receive_service.rb | |
parent | e2d00f9148a5c87fe4f56e4fd3c90a9b3574f03b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/post_receive_service.rb')
-rw-r--r-- | app/services/post_receive_service.rb | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/app/services/post_receive_service.rb b/app/services/post_receive_service.rb index faacabbb16c..a6d49f03c0b 100644 --- a/app/services/post_receive_service.rb +++ b/app/services/post_receive_service.rb @@ -32,11 +32,11 @@ class PostReceiveService response.add_alert_message(broadcast_message) response.add_merge_request_urls(merge_request_urls) - # Neither User nor Project are guaranteed to be returned; an orphaned write deploy + # Neither User nor Repository are guaranteed to be returned; an orphaned write deploy # key could be used - if user && project - redirect_message = Gitlab::Checks::ProjectMoved.fetch_message(user.id, project.id) - project_created_message = Gitlab::Checks::ProjectCreated.fetch_message(user.id, project.id) + if user && repository + redirect_message = Gitlab::Checks::ContainerMoved.fetch_message(user, repository) + project_created_message = Gitlab::Checks::ProjectCreated.fetch_message(user, repository) response.add_basic_message(redirect_message) response.add_basic_message(project_created_message) @@ -94,6 +94,8 @@ class PostReceiveService end def record_onboarding_progress + return unless project + OnboardingProgressService.new(project.namespace).execute(action: :git_write) end end |