Changes between Version 5 and Version 6 of CustomTicketPrefixPlugin
- Timestamp:
- Aug 16, 2018, 6:15:08 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CustomTicketPrefixPlugin
v5 v6 12 12 13 13 In the repo browser of Trac instance ''Foo'' the link is rendered correctly and shows the ticket status from the commit message. 14 15 To define a ticket prefix add the following to your `trac.ini` file: 16 17 {{{#!ini 18 [ticket-prefix] 19 prefix = Pre1, Foo, BAR 20 }}} 21 22 As you can see, it is possible to define several prefixes. 23 24 You may now reference any ticket by prepending the ticket with the defined prefix(es). With the given example the following links are all referencing the same ticket and all links are rendered the same way: 25 26 * {{{#1234}}} 27 * {{{Pre1:#1234}}} 28 * {{{Foo:#1234}}} 29 * {{{Bar:#1234}}} 30 31 A closed ticket would be rendered like: 32 * ~~{{{#123}}}~~ 33 * ~~{{{Pre1:#123}}}~~ 34 * ~~{{{Foo:#123}}}~~ 35 * ~~{{{Bar:#123}}}~~ 14 36 15 37 This plugin is tested with Trac 0.12.3 and Trac 1.0.10. … … 37 59 This is a single file plugin. For installation just copy the Python file to you plugin directory. There are versions for Trac 0.12 and Trac 1.0. 38 60 39 == Example40 41 To define a ticket prefix add the following to your `trac.ini` file:42 43 {{{#!ini44 [ticket-prefix]45 prefix = Pre1, Foo, BAR46 }}}47 48 As you can see, it's possible to define several prefixes.49 50 You may now reference any ticket by prepending the ticket with the defined prefix(es). With the given example the following links are all referencing the same ticket and all links are rendered the same way:51 52 * {{{#1234}}}53 * {{{Pre1:#1234}}}54 * {{{Foo:#1234}}}55 * {{{Bar:#1234}}}56 57 A closed ticket would be rendered like:58 * ~~{{{#123}}}~~59 * ~~{{{Pre1:#123}}}~~60 * ~~{{{Foo:#123}}}~~61 * ~~{{{Bar:#123}}}~~62 63 61 == Recent Changes 64 62