lib/abak-flow/branch.rb in abak-flow-1.0.8 vs lib/abak-flow/branch.rb in abak-flow-1.0.9
- old
+ new
@@ -65,10 +65,10 @@
# TODO : Сделать настраевыемым трекер и формат задачи
def extract_body
return I18n.t("commands.publish.nothing") if
tasks_from_commit_message.empty? && !tracker_task?
- [tasks_from_commit_message, task].flatten.uniq
+ [tasks_from_commit_message, task].flatten.compact.uniq
.map { |x| "http://jira.railsc.ru/browse/#{x}" } * "\n"
end
def update
origin = @manager.repository.origin.repo