Commit 3ff708f7 authored by Douwe Maan's avatar Douwe Maan Committed by Luke "Jared" Bennett

Remove unused code

parent 63c7801e
...@@ -64,32 +64,14 @@ class NotifyPreview < ActionMailer::Preview ...@@ -64,32 +64,14 @@ class NotifyPreview < ActionMailer::Preview
@project ||= Project.find_by_full_path('gitlab-org/gitlab-test') @project ||= Project.find_by_full_path('gitlab-org/gitlab-test')
end end
def issue
@issue ||= project.issues.last
end
def merge_request def merge_request
@merge_request ||= project.merge_requests.find_by(source_branch: 'master', target_branch: 'feature') @merge_request ||= project.merge_requests.find_by(source_branch: 'master', target_branch: 'feature')
end end
def commit
@commit ||= project.commit('570e7b2abdd848b95f2f578043fc23bd6f6fd24d')
end
def user def user
@user ||= User.last @user ||= User.last
end end
def note_body
<<-MD.strip_heredoc
Hello :smiley:
We expect a blank line between:
- The heading ("Adminstrator started...")
- The diff
MD
end
def create_note(params) def create_note(params)
Notes::CreateService.new(project, user, params).execute Notes::CreateService.new(project, user, params).execute
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment