Changes between Version 21 and Version 22 of CommitTicketUpdater
- Timestamp:
- Aug 31, 2016, 10:58:05 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CommitTicketUpdater
v21 v22 16 16 == Location 17 17 18 The `CommitTicketUpdater` component lives in [source:trunk/tracopt/ticket/commit_updater.py commit_updater.py] and is maintained alongside the Trac core. It's included with every Trac installation as a plugin, but is not enabled by default because it's rooted in the `tracopt.` packages and not in `trac.`. 18 The `CommitTicketUpdater` component lives in [source:trunk/tracopt/ticket/commit_updater.py commit_updater.py] and is maintained alongside the Trac core. It's included with every Trac installation as a plugin, but is not enabled by default because it's rooted in the `tracopt.` packages and not in `trac.`. Therefore it needs to be explicitly activated through the Admin interface. 19 19 20 20 == Enable … … 23 23 a. !CommitTicketUpdater (tracopt.ticket.commit_updater.*) 24 24 b. !CommitTicketReferenceMacro (tracopt.ticket.commit_updater.*) 25 1. Alternatively edit the `trac.ini` file, add the following line at the `[components]` section: 26 {{{ 25 1. Alternatively edit the `trac.ini` file, by adding the following line in the `[components]` section: 26 {{{#!ini 27 [components] 27 28 tracopt.ticket.commit_updater.* = enabled 28 29 }}} 29 30 30 == Configur e31 == Configuration 31 32 32 {{{ 33 There are also the following configurations to be set in the `trac.ini` file: 34 {{{#!ini 33 35 [ticket] 34 36 commit_ticket_update_envelope = [] … … 39 41 }}} 40 42 41 Where ,43 Where: 42 44 * `commit_ticket_update_envelope` sets the required commands to be enclosed in an envelope. 43 45 * Must be empty not to require an envelope; 44 * or contain two characters. For example, if set to "[]", then commands must be in the form of `[closes #4]`.[[BR]][[BR]] 46 * or contain two characters. For example, if set to "[]", then commands must be in the form of `[closes #4]`. 47 45 48 * `commit_ticket_update_commands.close`: has a space-separated list, with commands that close tickets. 46 * Default values to **close** a ticket: //close closed closes fix fixed fixes// [[BR]][[BR]] 49 * Default values to **close** a ticket: //close closed closes fix fixed fixes// 50 47 51 * `commit_ticket_update_commands.refs`: has a space-separated list, with commands that add a reference to tickets. 48 52 * Default values to **reference** a ticket: //addresses re references refs see// 49 * If set to the special value //<ALL>//, all tickets referenced by the message will get a reference to the changeset.[[BR]][[BR]] 53 * If set to the special value //<ALL>//, all tickets referenced by the message will get a reference to the changeset. 54 50 55 * `commit_ticket_update_check_perms` when //true// checks that the committer has permission to perform the requested operations on the referenced tickets 51 * Values: //true//, //false//[[BR]][[BR]] 56 * Values: //true//, //false// 57 52 58 * `commit_ticket_update_notify`, when //true// send ticket change notification when updating a ticket. 53 59 * Values: //true//, //false// … … 67 73 The basic syntax is of the form `[command] [ticketreference]`. A colon between the command and the ticket reference is allowed. The `ticketreference` also allows to list //multiple// ticket numbers separated by spaces and/or comma. The word 'and' is also allowed between ticket numbers. 68 74 69 You can optionally refer to tickets with the following words 75 You can optionally refer to tickets with the following words: 70 76 * //ticket//, //issue//, //bug// 71 77