gitlab-org--gitlab-foss/spec
Douwe Maan 0cdd4f310f Merge branch '14564-mr-automatic-title' into 'master'
Auto-set title for branches created from issues

This sets the title for a new MR to 'Resolves "$issue-title"' when:
- The source branch for the MR begins with a value iid.
- The MR has more than one commit in its diff (if there's one commit, keep using the commit's first line).
- The iid does not point to a confidential issue.

Single commit:

![A single commit uses the commit title](/uploads/cd34f59cd67f095c3034fae07950f8b5/image.png)

Multiple commits:

![Multiple commits use the issue title](/uploads/a322c406ddd56913c5aebd88d16e5a5e/image.png)

Confidential issue:

![A confidential issue uses the branch name](/uploads/7ae9b79de5f6101ced46802f3c3a6e71/image.png)

cc @DouweM @zj 

Closes #14564

See merge request !3966
2016-05-06 12:14:13 +00:00
..
config
controllers
factories
features Use outer join for issues ordering by milestones due. 2016-05-06 19:57:26 +09:00
finders
fixtures
helpers
initializers
javascripts
lib
mailers
models
requests
routing
services Merge branch '14564-mr-automatic-title' into 'master' 2016-05-06 12:14:13 +00:00
support
tasks/gitlab
views
workers
factories_spec.rb
rails_helper.rb
spec_helper.rb
teaspoon_env.rb