diff options
author | jurre <jurrestender+github@gmail.com> | 2016-12-15 21:48:26 +0100 |
---|---|---|
committer | jurre <jurrestender+github@gmail.com> | 2017-01-19 12:30:34 +0100 |
commit | e59623e7388d67433ede87db1dad134f6f176f98 (patch) | |
tree | a93e528ba7791c73b4f6907593258d6a3ecec78e /app/services/system_note_service.rb | |
parent | d3f26be6f08cd0656589306eb06991b93d1c5825 (diff) | |
download | gitlab-ce-e59623e7388d67433ede87db1dad134f6f176f98.tar.gz |
Mark MR as WIP when pushing WIP commits
Diffstat (limited to 'app/services/system_note_service.rb')
-rw-r--r-- | app/services/system_note_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/system_note_service.rb b/app/services/system_note_service.rb index 5ca2551ee61..a11bca00687 100644 --- a/app/services/system_note_service.rb +++ b/app/services/system_note_service.rb @@ -208,6 +208,12 @@ module SystemNoteService create_note(noteable: noteable, project: project, author: author, note: body) end + def add_merge_request_wip_from_commit(noteable, project, author, commit) + body = "marked as a **Work In Progress** from #{commit.to_reference(project)}" + + create_note(noteable: noteable, project: project, author: author, note: body) + end + def self.resolve_all_discussions(merge_request, project, author) body = "resolved all discussions" |