[ditz-talk] PATCH: add an ri command that lists all issues for a particular release
Matthew Wilson
matt at tplus1.com
Sun Nov 9 13:24:56 EST 2008
I couldn't figure out how to list the issues for a particular release,
so I made this patch. Comments are welcome, because I would like to
learn how to code in Ruby better.
ri stands for "release issues".
---
lib/ditz/operator.rb | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/lib/ditz/operator.rb b/lib/ditz/operator.rb
index 0a45867..b9a433b 100644
--- a/lib/ditz/operator.rb
+++ b/lib/ditz/operator.rb
@@ -615,6 +615,14 @@ EOS
end
end
end
+
+ operation :ri, "Show issues for a particular release", :release do
+ end
+
+ def ri project, config, opts, release
+ puts todo_list_for(release.issues_from(project))
+ end
+
end
end
--
1.5.4.3
--
Matthew Wilson
matt at tplus1.com
http://tplus1.com
More information about the ditz-talk
mailing list