Ticket #2325 (new enhancement)
make trac-post-commit-hook also set the owner to the commiter
| Reported by: | Pedro Algarvio <ufs@…> | Owned by: | jonas |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.11-retriage |
| Component: | general | Version: | 0.9 |
| Severity: | trivial | Keywords: | |
| Cc: | ufs@… |
Description
trac-post-commit-hook could also set the owner of the ticket prior to closing it to the user commiting.
-
./trac-post-commit-hook
old new 151 151 for tkt_id in tickets: 152 152 try: 153 153 ticket = Ticket(self.env, tkt_id) 154 ticket['owner'] = self.author # Set ticket ownership to commiter 154 155 ticket['status'] = 'closed' 155 156 ticket['resolution'] = 'fixed' 156 157 ticket.save_changes(self.author, self.msg, self.now)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


