BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
961cb285
Commit
961cb285
authored
Nov 29, 2012
by
Nihad Abbasov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
API: restore broken merge request commenting
parent
c946bf88
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
entities.rb
lib/api/entities.rb
+5
-0
merge_requests.rb
lib/api/merge_requests.rb
+1
-1
No files found.
lib/api/entities.rb
View file @
961cb285
...
...
@@ -75,5 +75,10 @@ module Gitlab
expose
:author
,
using:
Entities
::
UserBasic
expose
:updated_at
,
:created_at
end
class
MRNote
<
Grape
::
Entity
expose
:note
expose
:author
,
using:
Entities
::
UserBasic
end
end
end
lib/api/merge_requests.rb
View file @
961cb285
...
...
@@ -107,7 +107,7 @@ module Gitlab
note
.
author
=
current_user
if
note
.
save
present
note
,
with:
Entities
::
Note
present
note
,
with:
Entities
::
MR
Note
else
not_found!
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