diff options
author | 2008-06-06 05:57:40 +0000 | |
---|---|---|
committer | 2008-06-06 05:57:40 +0000 | |
commit | 59cc5796e67bb253f975f084fab16f25624e2034 (patch) | |
tree | 876f8d54a3191c5db030d20756635157d10174c5 | |
parent | Append ? if needed for urls. (diff) | |
download | rbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.tar.gz rbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.tar.bz2 rbot-bugzilla-59cc5796e67bb253f975f084fab16f25624e2034.zip |
Contract status/reso/issue.
-rw-r--r-- | bugzilla.rb | 10 |
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 |