aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2008-06-06 05:57:40 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2008-06-06 05:57:40 +0000
commit59cc5796e67bb253f975f084fab16f25624e2034 (patch)
tree876f8d54a3191c5db030d20756635157d10174c5
parentAppend ? if needed for urls. (diff)
downloadrbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.tar.gz
rbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.tar.bz2
rbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.zip
Contract status/reso/issue.
-rw-r--r--bugzilla.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/bugzilla.rb b/bugzilla.rb
index 1da3f01..6d2a288 100644
--- a/bugzilla.rb
+++ b/bugzilla.rb
@@ -301,9 +301,13 @@ class BugzillaPlugin < Plugin
"#{bugxml.get_text("product")} | #{bugxml.get_text("component")}".
chomp(" | ")
- status =
- "#{bugxml.get_text("bug_status")}#{bugxml.get_text("issue_status")}, #{bugxml.get_text("resolution")}".
- chomp(", ")
+ status = bugxml.get_text("bug_status").to_s
+ issue = bugxml.get_text("issue_status").to_s
+ reso = bugxml.get_text("resolution").to_s
+
+ status = status[0..3]
+ status += ", #{issue[0..3]}" if issue and issue.length > 0
+ status += ", #{reso[0..3]}" if reso and reso.length > 0
desc = bugxml.get_text("short_desc").to_s.decode_entities