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
0
Merge Requests
0
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
Kazuhiko Shiozaki
gitlab-ce
Commits
afb8ecc3
Commit
afb8ecc3
authored
Feb 02, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix syntax error
parent
c8e7928e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
app/helpers/merge_requests_helper.rb
app/helpers/merge_requests_helper.rb
+7
-5
No files found.
app/helpers/merge_requests_helper.rb
View file @
afb8ecc3
...
@@ -15,11 +15,13 @@ module MergeRequestsHelper
...
@@ -15,11 +15,13 @@ module MergeRequestsHelper
end
end
def
new_mr_from_push_event
(
event
,
target_project
)
def
new_mr_from_push_event
(
event
,
target_project
)
return
merge_request:
{
return
{
source_project_id:
event
.
project
.
id
,
merge_request:
{
target_project_id:
target_project
.
id
,
source_project_id:
event
.
project
.
id
,
source_branch:
event
.
branch_name
,
target_project_id:
target_project
.
id
,
target_branch:
target_project
.
repository
.
root_ref
source_branch:
event
.
branch_name
,
target_branch:
target_project
.
repository
.
root_ref
}
}
}
end
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