Opened 15 years ago
Closed 15 years ago
#9346 closed defect (worksforme)
unable to customize trac-svn-hook or prevent it from closing tickets
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | contrib | Version: | 0.12dev |
Severity: | normal | Keywords: | trac-svn-hook |
Cc: | Christian Boos, jkimmel@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
Prior to the switch to trac-svn-hook, the trac administrator could modify the trac-post-commit-hook script to customize how the commits show up in a ticket's comment history.
Additionally, the administrator could decide whether or not a commit message can close a ticket, and what command words triggered an automated ticket update.
I don't see how any of this customization would be done with the new system without making changes to trac itself. It would be nice if these customizations were supported in the trac.ini, the trac-svn-hook script, or through some other mechanism.
Replying to jkimmel@…:
The command words can be configured with the
[ticket] commit_ticket_update_commands.close
and[ticket] commit_ticket_update_commands.refs
options.The other customizations (adding checks before closing a ticket, changing the generated ticket comment, and even adding more "commands") can be done in a (single-file) plugin, by implementing a component that inherits from
CommitTicketUpdater
and overrides thecmd_*()
andmake_ticket_comment()
methods.