17 | | === Syntax === |
| 18 | The `CommitTicketUpdater` component lives in `source:trunk/tracopt/ticket/commit_updater.py` ([trac:browser//trunk/tracopt/ticket/commit_updater.py see it]) 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 (e.g. trough the Admin interface). |
| 19 | |
| 20 | === Enable === |
| 21 | |
| 22 | A. Trough the Admin interface ([/admin/general/plugin]), enable: //tracopt.ticket.commit_updater.*// modules |
| 23 | a. !CommitTicketUpdater (tracopt.ticket.commit_updater.*)[[BR]][[BR]] |
| 24 | B. alternativally editing `trac.ini` file, add the following line at the appropriate section: |
| 25 | {{{ |
| 26 | TO BE FILLED-IN |
| 27 | }}} |
| 28 | |
| 29 | === Configure === |
| 30 | |
| 31 | {{{ |
| 32 | [ticket] |
| 33 | commit_ticket_update_envelope = [] |
| 34 | commit_ticket_update_commands.close = |
| 35 | commit_ticket_update_commands.refs = <ALL> |
| 36 | commit_ticket_update_check_perms = true |
| 37 | commit_ticket_update_notify = true |
| 38 | }}} |
| 39 | |
| 40 | Where, |
| 41 | a. `commit_ticket_update_envelope` sets the required commands to be enclosed in an envelope. |
| 42 | * Must be empty not to require an envelope; |
| 43 | * or contain two characters. For example, if set to "[]", then commands must be in the form of `[closes #4]`.[[BR]][[BR]] |
| 44 | a. `commit_ticket_update_commands.close`: has a space-separated list, whit commands that close tickets. |
| 45 | * Default values to **close** a ticket: //close//, //closed//, //closes//, //fix//, //fixed//, //fixes//[[BR]][[BR]] |
| 46 | a. `commit_ticket_update_commands.refs`: has a space-separated list, whit commands that add a reference to tickets. |
| 47 | * Default values to **reference** a ticket: //addresses//, //re//, //references//, //refs//, //see// |
| 48 | * If set to the special value //<ALL>//, all tickets referenced by the message will get a reference to the changeset.[[BR]][[BR]] |
| 49 | a. `commit_ticket_update_check_perms` when //true// checks that the committer has permission to perform the requested operations on the referenced tickets |
| 50 | * Values: //true//, //false//[[BR]][[BR]] |
| 51 | a. `commit_ticket_update_notify`, when //true// send ticket change notification when updating a ticket. |
| 52 | * Values: //true//, //false// |
| 53 | |
| 54 | === Usage === |
| 55 | |