Edgewall Software
Modify

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: jkimmel@… 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.

Attachments (0)

Change History (1)

in reply to:  description comment:1 by Remy Blank, 15 years ago

Resolution: worksforme
Status: newclosed

Replying to jkimmel@…:

Additionally, the administrator could decide whether or not a commit message can close a ticket, and what command words triggered an automated ticket update.

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 the cmd_*() and make_ticket_comment() methods.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.