summaryrefslogtreecommitdiff
path: root/app/services/quick_actions
diff options
context:
space:
mode:
authorAndrew Newdigate <andrew@gitlab.com>2017-10-10 14:56:04 +0000
committerRémy Coutable <remy@rymai.me>2017-10-10 14:56:04 +0000
commit47d19c2de1df14bb3ab00d051be8e4f19f4ed7c4 (patch)
treea937896d47c846185e397528bdd6fa3e64ae78b9 /app/services/quick_actions
parent900dd7fa93ee9de3de767aa4bf5baca7e9f83348 (diff)
downloadgitlab-ce-47d19c2de1df14bb3ab00d051be8e4f19f4ed7c4.tar.gz
Stop using `branch_names.include?` and use `branch_exists?`
Diffstat (limited to 'app/services/quick_actions')
-rw-r--r--app/services/quick_actions/interpret_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/quick_actions/interpret_service.rb b/app/services/quick_actions/interpret_service.rb
index a077b3584b0..955d934838b 100644
--- a/app/services/quick_actions/interpret_service.rb
+++ b/app/services/quick_actions/interpret_service.rb
@@ -458,7 +458,7 @@ module QuickActions
target_branch_param.strip
end
command :target_branch do |branch_name|
- @updates[:target_branch] = branch_name if project.repository.branch_names.include?(branch_name)
+ @updates[:target_branch] = branch_name if project.repository.branch_exists?(branch_name)
end
desc 'Move issue from one column of the board to another'