diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-11-19 08:27:35 +0000 |
commit | 7e9c479f7de77702622631cff2628a9c8dcbc627 (patch) | |
tree | c8f718a08e110ad7e1894510980d2155a6549197 /app/services/system_notes | |
parent | e852b0ae16db4052c1c567d9efa4facc81146e88 (diff) | |
download | gitlab-ce-7e9c479f7de77702622631cff2628a9c8dcbc627.tar.gz |
Add latest changes from gitlab-org/gitlab@13-6-stable-eev13.6.0-rc42
Diffstat (limited to 'app/services/system_notes')
-rw-r--r-- | app/services/system_notes/merge_requests_service.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/services/system_notes/merge_requests_service.rb b/app/services/system_notes/merge_requests_service.rb index 9b5c9ba20b2..a51e2053394 100644 --- a/app/services/system_notes/merge_requests_service.rb +++ b/app/services/system_notes/merge_requests_service.rb @@ -26,16 +26,16 @@ module SystemNotes create_note(NoteSummary.new(noteable, project, author, body, action: 'merge')) end - def handle_merge_request_wip - prefix = noteable.work_in_progress? ? "marked" : "unmarked" + def handle_merge_request_draft + action = noteable.work_in_progress? ? "draft" : "ready" - body = "#{prefix} as a **Work In Progress**" + body = "marked this merge request as **#{action}**" create_note(NoteSummary.new(noteable, project, author, body, action: 'title')) end - def add_merge_request_wip_from_commit(commit) - body = "marked as a **Work In Progress** from #{commit.to_reference(project)}" + def add_merge_request_draft_from_commit(commit) + body = "marked this merge request as **draft** from #{commit.to_reference(project)}" create_note(NoteSummary.new(noteable, project, author, body, action: 'title')) end |