[ditz-talk] [PATCH] added 'prune' command to drop all tickets for a release.

_why why at whytheluckystiff.net
Mon Apr 7 16:08:49 EDT 2008


---
 lib/operator.rb |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/lib/operator.rb b/lib/operator.rb
index e68087f..c48808b 100644
--- a/lib/operator.rb
+++ b/lib/operator.rb
@@ -401,6 +401,13 @@ EOS
     end
   end
 
+  operation :prune, "Drop all tickets related to a relase", :release
+  def prune project, config, release
+    issues = release.issues_from project
+    issues.each { |issue| project.drop_issue issue }
+    puts "Pruned #{release.name}."
+  end
+
   operation :validate, "Validate project status"
   def validate project, config
     ## a no-op
-- 
1.4.4



More information about the ditz-talk mailing list