Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
17a41d34
Commit
17a41d34
authored
Jan 02, 2019
by
Brett Walker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix already initialized constant constant warning
parent
0e33ab76
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
ee/lib/gitlab/email/handler/ee/service_desk_handler.rb
ee/lib/gitlab/email/handler/ee/service_desk_handler.rb
+1
-1
lib/gitlab/email/handler/base_handler.rb
lib/gitlab/email/handler/base_handler.rb
+1
-1
lib/gitlab/email/handler/create_issue_handler.rb
lib/gitlab/email/handler/create_issue_handler.rb
+1
-1
lib/gitlab/email/handler/create_merge_request_handler.rb
lib/gitlab/email/handler/create_merge_request_handler.rb
+1
-1
No files found.
ee/lib/gitlab/email/handler/ee/service_desk_handler.rb
View file @
17a41d34
...
@@ -10,7 +10,7 @@ module Gitlab
...
@@ -10,7 +10,7 @@ module Gitlab
class
ServiceDeskHandler
<
BaseHandler
class
ServiceDeskHandler
<
BaseHandler
include
ReplyProcessing
include
ReplyProcessing
HANDLER_REGEX
=
/\A
#{
::
Gitlab
::
Email
::
Handler
::
BaseHandler
::
HANDLER_ACTION_BASE_REGEX
}
-issue-\z/
.
freeze
HANDLER_REGEX
=
/\A
#{
HANDLER_ACTION_BASE_REGEX
}
-issue-\z/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\z/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\z/
.
freeze
def
initialize
(
mail
,
mail_key
)
def
initialize
(
mail
,
mail_key
)
...
...
lib/gitlab/email/handler/base_handler.rb
View file @
17a41d34
...
@@ -6,7 +6,7 @@ module Gitlab
...
@@ -6,7 +6,7 @@ module Gitlab
class
BaseHandler
class
BaseHandler
attr_reader
:mail
,
:mail_key
attr_reader
:mail
,
:mail_key
HANDLER_ACTION_BASE_REGEX
=
/(?<project_slug>.+)-(?<project_id>\d+)/
.
freeze
HANDLER_ACTION_BASE_REGEX
||
=
/(?<project_slug>.+)-(?<project_id>\d+)/
.
freeze
def
initialize
(
mail
,
mail_key
)
def
initialize
(
mail
,
mail_key
)
@mail
=
mail
@mail
=
mail
...
...
lib/gitlab/email/handler/create_issue_handler.rb
View file @
17a41d34
...
@@ -11,7 +11,7 @@ module Gitlab
...
@@ -11,7 +11,7 @@ module Gitlab
class
CreateIssueHandler
<
BaseHandler
class
CreateIssueHandler
<
BaseHandler
include
ReplyProcessing
include
ReplyProcessing
HANDLER_REGEX
=
/\A
#{
Gitlab
::
Email
::
Handler
::
BaseHandler
::
HANDLER_ACTION_BASE_REGEX
}
-(?<incoming_email_token>.+)-issue\z/
.
freeze
HANDLER_REGEX
=
/\A
#{
HANDLER_ACTION_BASE_REGEX
}
-(?<incoming_email_token>.+)-issue\z/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\+(?<incoming_email_token>.*)\z/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\+(?<incoming_email_token>.*)\z/
.
freeze
def
initialize
(
mail
,
mail_key
)
def
initialize
(
mail
,
mail_key
)
...
...
lib/gitlab/email/handler/create_merge_request_handler.rb
View file @
17a41d34
...
@@ -12,7 +12,7 @@ module Gitlab
...
@@ -12,7 +12,7 @@ module Gitlab
class
CreateMergeRequestHandler
<
BaseHandler
class
CreateMergeRequestHandler
<
BaseHandler
include
ReplyProcessing
include
ReplyProcessing
HANDLER_REGEX
=
/\A
#{
Gitlab
::
Email
::
Handler
::
BaseHandler
::
HANDLER_ACTION_BASE_REGEX
}
-(?<incoming_email_token>.+)-merge-request\z/
.
freeze
HANDLER_REGEX
=
/\A
#{
HANDLER_ACTION_BASE_REGEX
}
-(?<incoming_email_token>.+)-merge-request\z/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\+merge-request\+(?<incoming_email_token>.*)/
.
freeze
HANDLER_REGEX_LEGACY
=
/\A(?<project_path>[^\+]*)\+merge-request\+(?<incoming_email_token>.*)/
.
freeze
def
initialize
(
mail
,
mail_key
)
def
initialize
(
mail
,
mail_key
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment