[ditz-talk] [PATCH] Make issue-labeling use ask_multiline_or_editor

Daniel Kalør daniel at kalor.dk
Fri Nov 14 02:20:46 EST 2008


---
 lib/ditz/plugins/issue-labeling.rb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/ditz/plugins/issue-labeling.rb b/lib/ditz/plugins/issue-labeling.rb
index f85bccc..00bfa17 100644
--- a/lib/ditz/plugins/issue-labeling.rb
+++ b/lib/ditz/plugins/issue-labeling.rb
@@ -109,7 +109,7 @@ class Operator
   def label project, config, issue, label_names
     labels = project.labels_for label_names
     puts "Adding labels #{label_names} to issue #{issue.name}: #{issue.title}."
-    comment = ask_multiline "Comments" unless $opts[:no_comment]
+    comment = ask_multiline_or_editor "Comments" unless $opts[:no_comment]
     issue.apply_labels labels, config.user, comment
     show_labels issue
   end
@@ -123,7 +123,7 @@ class Operator
                puts "Removing labels from issue #{issue.name}: #{issue.title}."
               nil
              end
-    comment = ask_multiline "Comments" unless $opts[:no_comment]
+    comment = ask_multiline_or_editor "Comments" unless $opts[:no_comment]
     issue.remove_labels labels, config.user, comment
     show_labels issue
   end
-- 
1.6.0.3



More information about the ditz-talk mailing list