diff options
author | Sean McGivern <sean@gitlab.com> | 2016-04-29 10:47:08 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-04-29 10:47:08 +0100 |
commit | c18829a1156cf00f61c39a20ce3e2c5e97aba5bd (patch) | |
tree | cd9e6a5ebd1a8e64e215bd6d4c33aecbe93d3c93 | |
parent | 8db1116f33b2e3075beab734494c232559adcbc2 (diff) | |
download | gitlab-ce-14564-mr-automatic-title.tar.gz |
fixup! Auto-set title for branches created from issues14564-mr-automatic-title
-rw-r--r-- | app/services/merge_requests/build_service.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/services/merge_requests/build_service.rb b/app/services/merge_requests/build_service.rb index 931c40c6f1a..5efb89a7a09 100644 --- a/app/services/merge_requests/build_service.rb +++ b/app/services/merge_requests/build_service.rb @@ -56,7 +56,9 @@ module MergeRequests # more than one commit in the MR # def set_title_and_description(merge_request) - iid = match[1] if match = merge_request.source_branch.match(/\A(\d+)-/) + if match = merge_request.source_branch.match(/\A(\d+)-/) + iid = match[1] + end commits = merge_request.compare_commits if commits && commits.count == 1 |