summaryrefslogtreecommitdiff
path: root/app/models/issue.rb
diff options
context:
space:
mode:
authorTimothy Andrew <mail@timothyandrew.net>2016-04-19 09:22:55 +0530
committerTimothy Andrew <mail@timothyandrew.net>2016-04-19 09:22:55 +0530
commitf801e2243dcce6d3bdce01acf62fbf5a49a301da (patch)
treee5c4c364f5133ab530581e5da250d5f787390a4a /app/models/issue.rb
parentaa396ae5ee5715c1a2a8a82731cef6e3d7f73056 (diff)
downloadgitlab-ce-f801e2243dcce6d3bdce01acf62fbf5a49a301da.tar.gz
A new branch created for a confidential issue is named `<id>-confidential-issue`.14566-confidential-issue-branches
Diffstat (limited to 'app/models/issue.rb')
-rw-r--r--app/models/issue.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue.rb b/app/models/issue.rb
index 530d2107596..2f773869603 100644
--- a/app/models/issue.rb
+++ b/app/models/issue.rb
@@ -158,7 +158,7 @@ class Issue < ActiveRecord::Base
def to_branch_name
if self.confidential?
- "issue-#{iid}"
+ "#{iid}-confidential-issue"
else
"#{iid}-#{title.parameterize}"
end