Closed Bug 301079 Opened 19 years ago Closed 19 years ago

[BUGZILLA] BugzillaMailHandler: Option to report some products using the names of their components

Categories

(Webtools Graveyard :: Mozbot, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mkanat, Assigned: mkanat)

Details

Attachments

(2 files)

bzbot used to report the "Webtools" and "mozilla.org" products as their
components. For example, in Webtools, he would say something like "New Mozbot
bug 234234333322 filed by blah@blahblah.com."

It would be nice if the BugzillaMailHandler code in mozbot could also do that.

Short of moving the message-creation code into Bugzilla.bm (which I should
probably do), the only way to accomplish this is a hack in BugzillaMailHandler,
perhaps a constant that can be modified.
Attached patch Patch v1 β€” β€” Splinter Review
This adds a new var to the Bugzilla module - reportComponentAsProduct. When
$product::::$component is set in this variable, the code replaces $product with
$component in the message to be reported to the channel.
Attachment #189588 - Flags: review?(mkanat)
Comment on attachment 189588 [details] [diff] [review]
Patch v1

It doesn't need to be a hash, it just needs to be a list of Product names.

For bonus points, though, it can *also* understand the :::: format, but it only
*needs* to understand the Product.

Otherwise, this is a pretty good hack. :-)
Attachment #189588 - Flags: review?(mkanat) → review-
Attached patch Patch v2 β€” β€” Splinter Review
Makes it a list instead... allows both "Product" and "Product::::Component".
Attachment #189693 - Flags: review?(mkanat)
Comment on attachment 189693 [details] [diff] [review]
Patch v2

Looks good to me! :-) Feel free to check it in.
Attachment #189693 - Flags: review?(mkanat) → review+
Checking in BotModules/Bugzilla.bm;
/cvsroot/mozilla/webtools/mozbot/BotModules/Bugzilla.bm,v  <--  Bugzilla.bm
new revision: 2.14; previous revision: 2.13
done
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
QA Contact: kerz → mozbot
Target Milestone: --- → 2.6
Verified Fixed.
Status: RESOLVED → VERIFIED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: