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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
0fd12a78
Commit
0fd12a78
authored
May 13, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6825 from sue445/feature/post_automerge
Fix can not automerge when description is too long
parents
e0fdb426
a3d8be09
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
+8
-4
CHANGELOG
CHANGELOG
+1
-0
app/views/projects/merge_requests/show/_mr_accept.html.haml
app/views/projects/merge_requests/show/_mr_accept.html.haml
+1
-1
config/routes.rb
config/routes.rb
+1
-1
spec/routing/project_routing_spec.rb
spec/routing/project_routing_spec.rb
+5
-2
No files found.
CHANGELOG
View file @
0fd12a78
...
...
@@ -11,6 +11,7 @@ v 6.9.0
- Improve issue and merge request mobile UI (Drew Blessing)
- Document how to convert a backup to PostgreSQL
- Fix locale bug in backup manager
- Fix can not automerge when MR description is too long
- Fix wiki backup skip bug
- Two Step MR creation process
- Remove unwanted files from satellite working directory with git clean -fdx
...
...
app/views/projects/merge_requests/show/_mr_accept.html.haml
View file @
0fd12a78
...
...
@@ -12,7 +12,7 @@
-
if
@show_merge_controls
.automerge_widget.can_be_merged.hide
.clearfix
=
form_for
[
:automerge
,
@project
,
@merge_request
],
remote:
true
,
method: :
ge
t
do
|
f
|
=
form_for
[
:automerge
,
@project
,
@merge_request
],
remote:
true
,
method: :
pos
t
do
|
f
|
%h4
You can accept this request automatically.
%div
...
...
config/routes.rb
View file @
0fd12a78
...
...
@@ -273,7 +273,7 @@ Gitlab::Application.routes.draw do
resources
:merge_requests
,
constraints:
{
id:
/\d+/
},
except:
[
:destroy
]
do
member
do
get
:diffs
ge
t
:automerge
pos
t
:automerge
get
:automerge_check
get
:ci_status
end
...
...
spec/routing/project_routing_spec.rb
View file @
0fd12a78
...
...
@@ -213,7 +213,7 @@ describe Projects::RefsController, "routing" do
end
# diffs_project_merge_request GET /:project_id/merge_requests/:id/diffs(.:format) projects/merge_requests#diffs
# automerge_project_merge_request
GET
/:project_id/merge_requests/:id/automerge(.:format) projects/merge_requests#automerge
# automerge_project_merge_request
POST
/:project_id/merge_requests/:id/automerge(.:format) projects/merge_requests#automerge
# automerge_check_project_merge_request GET /:project_id/merge_requests/:id/automerge_check(.:format) projects/merge_requests#automerge_check
# branch_from_project_merge_requests GET /:project_id/merge_requests/branch_from(.:format) projects/merge_requests#branch_from
# branch_to_project_merge_requests GET /:project_id/merge_requests/branch_to(.:format) projects/merge_requests#branch_to
...
...
@@ -230,7 +230,10 @@ describe Projects::MergeRequestsController, "routing" do
end
it
"to #automerge"
do
get
(
"/gitlab/gitlabhq/merge_requests/1/automerge"
).
should
route_to
(
'projects/merge_requests#automerge'
,
project_id:
'gitlab/gitlabhq'
,
id:
'1'
)
post
(
'/gitlab/gitlabhq/merge_requests/1/automerge'
).
should
route_to
(
'projects/merge_requests#automerge'
,
project_id:
'gitlab/gitlabhq'
,
id:
'1'
)
end
it
"to #automerge_check"
do
...
...
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