>On Sunday 17 July 2005 21:12, Jeffrey Forman wrote: > 2. I am applying a spiffy new autolink feature. Just like being able to > cite "bug #XXXX" and a link is created, now "glsa #XXXX-Y" will be > active so that our security folks can more easily reference glsa's. btw.: Would it be possible to extend this to "<foo> bug #XXXX", with <foo> := {fdo, moz, kde, ...} to refer to external bug tracking systems? > On Monday 18 July 2005 14:46, Henrik Brix Andersen wrote: > If you add the above, please add magic for the kernel.org bug tracker as > well.
The URL for kernel.org bugs is http://bugzilla.kernel.org/show_bug.cgi?id=%bugid%
Would be nice for us dotnet herders to be able to reference the ximian bugzie too.
kernel yum yum > For kernel bugs, is it possible to be able to do something like: > <`Pikachu> cve #CAN-2005-1912 > <GenBot> `Pikachu: Bug #123456; "CAN-2005-1912: Kernel infested with > Pokemon"; [Gentoo Linux :: Kernels]; {RESOLVED:PIKA!}; Wile E. > Coyote->kernel herd; http://bugs.gentoo.org/123456 > > Maybe applicable to other apps that get assigned CVE/CAN IDs. > > Possible? > Plasmaroo's already done some kind of implementation of this specific to CAN-XXXX-YYYY queries (Maybe more...), but if it's expandable in any way, it might prove to be useful, somewhat. CC'ing myself, kernel, and solar.
foreach $ID (keys %bugzie) { $text =~ s~(($ID) bug \#?(\d+)) ~<a href=\"http://$bugzie{$2}/show_bug.cgi?id=$3\">$1</a> ~ixgc; } This should do the trick. For each bugzilla to get links, a line such as: $bugzie{"kernel"} = "bugzilla.kernel.org"; should be placed above the loop. Another example would be: $bugzie{"gnome"} = "bugzilla.gnome.org"; The code would then match text in the format: 'kernel bug #xxxx' and 'kernel bug xxxx'.
If no one minds, i'd say rather https:// than http://, if supported.
In that case: $bugzie{"kernel"} = "https://bugzilla.kernel.org"; $bugzie{"gnome"} = "http://bugzilla.gnome.org"; foreach $ID (keys %bugzie) { $text =~ s~(($ID) bug \#?(\d+)) ~<a href=\"$bugzie{$2}/show_bug.cgi?id=$3\">$1</a> ~ixgc; } (bugzilla.kernel.org doesn't actually support https, just an example)
i'm not sure we want to add "kernel" and "gnome" as triggers. these are frequently used words and they might start throwing autolinks everywhere.
then maybe we can use kernel.og/gnome.org? It would be nice for us to be able to attach kernel.org bug #12345 and then steal one of your goats in the night knowing that we helped a user by pointing them to the real bug report.
this will be later as i concentrate on "needs" rather than "wants." sorry -jeffrey