Closed Bug 530311 Opened 16 years ago Closed 11 years ago

Make the bugzilla URL match other words than "bug"

Categories

(Other Applications Graveyard :: ChatZilla, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wormsxulla, Assigned: hunboy)

Details

Attachments

(2 files, 2 obsolete files)

Some bug tracking systems do not use "bug" as their keyword for naming individual bugs, but use: - issue - ticket. It would be great if issue# and ticket# would be recognized as matching bug#, so an URL could link directly to them.
Severity: normal → enhancement
Version: unspecified → Trunk
Status: NEW → ASSIGNED
Assignee: rginda → utasir
Attached patch patch v1.0 (obsolete) — Splinter Review
Silver, this one works with | separated keywords such as bug|issue|ticket this comes from the RegExp. I did not find way to make it network/channel dependent while this is hacking the munger itself, and we dont define own mungers for each channels. the default value is: bug the network/channel dependent overdefine of buglink works of course. I havent touched that.
Attachment #8417105 - Flags: review?(bugzilla-mozilla-20020327)
Attached image graphical presentation
Attached patch patch v1.0.1 (obsolete) — Splinter Review
Some English correction for label title at preferences (thnx to Neil to fix my english)
Attachment #8417105 - Attachment is obsolete: true
Attachment #8417105 - Flags: review?(bugzilla-mozilla-20020327)
Attachment #8417136 - Flags: review?(bugzilla-mozilla-20020327)
Comment on attachment 8417136 [details] [diff] [review] patch v1.0.1 Review of attachment 8417136 [details] [diff] [review]: ----------------------------------------------------------------- Overall looks good; r=silver with the nits fixed. Thanks and apologies for the delay! ::: locales/en-US/chrome/chatzilla.properties @@ +1470,5 @@ > pref.awayIdleMsg.help = The away message ChatZilla will use when you go away. > pref.awayNick.label = Nickname (away) > pref.awayNick.help = This nickname will automatically be used when you mark yourself away, if different from 'Nickname'. You may leave this blank to not change nickname when going away. > +pref.bugKeyword.label = Bug Keywords > +pref.bugKeyword.help = You can define multiple issue tracker keywords by separating them with "|" e.g. bug|issue|case|ticket Nit: I think this should explicitly state that the value is a regular expression. ::: xul/content/mungers.js @@ +327,4 @@ > > if (bugURL.length > 0) > { > + var idOrAlias = matchText.match(new RegExp("("+client.prefs["bugKeyword"]+")\\s+#?(\\d+|[^\\s,]{1,20})","i"))[2]; Nit: You could use (?: ... ) here as well and avoid changing [1] to [2].
Attachment #8417136 - Flags: review?(bugzilla-mozilla-20020327) → review+
Attached patch patch v1.1Splinter Review
Nits fixed patch
Attachment #8417136 - Attachment is obsolete: true
Attachment #8427302 - Flags: review?(bugzilla-mozilla-20020327)
Attachment #8427302 - Flags: review?(bugzilla-mozilla-20020327) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Other Applications → Other Applications Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: