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
61855dc1
Commit
61855dc1
authored
Oct 09, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix conflicts relating to models/project_services/chat_message/merge_message.rb
parent
c4a2633b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
app/models/project_services/chat_message/merge_message.rb
app/models/project_services/chat_message/merge_message.rb
+1
-5
spec/models/project_services/chat_message/merge_message_spec.rb
...odels/project_services/chat_message/merge_message_spec.rb
+1
-1
No files found.
app/models/project_services/chat_message/merge_message.rb
View file @
61855dc1
...
...
@@ -48,11 +48,7 @@ module ChatMessage
end
def
merge_request_message
<<<<<<<
HEAD
"
#{
user_name
}
#{
state_or_action_text
}
#{
merge_request_link
}
in
#{
project_link
}
:
#{
title
}
"
=======
"
#{
user_combined_name
}
#{
state
}
#{
merge_request_link
}
in
#{
project_link
}
:
#{
title
}
"
>>>>>>>
ce
-
com
/
master
"
#{
user_combined_name
}
#{
state_or_action_text
}
#{
merge_request_link
}
in
#{
project_link
}
:
#{
title
}
"
end
def
merge_request_link
...
...
spec/models/project_services/chat_message/merge_message_spec.rb
View file @
61855dc1
...
...
@@ -57,7 +57,7 @@ describe ChatMessage::MergeMessage do
it
'returns a message regarding approval of merge requests'
do
expect
(
subject
.
pretext
).
to
eq
(
'
test.user
approved <http://somewhere.com/merge_requests/100|!100 *Merge Request title*> '
\
'
Test User (test.user)
approved <http://somewhere.com/merge_requests/100|!100 *Merge Request title*> '
\
'in <http://somewhere.com|project_name>: *Merge Request title*'
)
expect
(
subject
.
attachments
).
to
be_empty
end
...
...
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