From 634c9f403bca2c720ed81585b4fb760963ba4dbe Mon Sep 17 00:00:00 2001
From: Lin Jen-Shin <godfat@godfat.org>
Date: Thu, 7 Apr 2016 03:18:01 +0800
Subject: [PATCH] process_reply -> process_create_note; handle_reply ->
 process_reply

---
 lib/gitlab/email/receiver.rb | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/lib/gitlab/email/receiver.rb b/lib/gitlab/email/receiver.rb
index b8065580b54..e02554eb473 100644
--- a/lib/gitlab/email/receiver.rb
+++ b/lib/gitlab/email/receiver.rb
@@ -22,7 +22,7 @@ module Gitlab
         raise EmptyEmailError if @raw.blank?
 
         if sent_notification
-          process_reply
+          process_create_note
 
         elsif message_project
           process_create_issue
@@ -34,7 +34,7 @@ module Gitlab
       end
 
       private
-      def process_reply
+      def process_create_note
         raise AutoGeneratedEmailError if message.header.to_s =~ /auto-(generated|replied)/
 
         author = sent_notification.recipient
@@ -44,7 +44,7 @@ module Gitlab
 
         raise NoteableNotFoundError unless sent_notification.noteable
 
-        reply = handle_reply(project)
+        reply = process_reply(project)
         raise EmptyEmailError if reply.blank?
         note = create_note(reply)
 
@@ -65,7 +65,7 @@ module Gitlab
           message_project,
           message_sender,
           title:       message.subject,
-          description: handle_reply(message_project)
+          description: process_reply(message_project)
         ).execute
 
         unless issue.persisted?
@@ -100,7 +100,7 @@ module Gitlab
           Project.find_with_namespace(reply_key) if reply_key
       end
 
-      def handle_reply(project)
+      def process_reply(project)
         reply = ReplyParser.new(message).execute.strip
 
         add_attachments(reply, project)
-- 
GitLab