[Trac-tickets] [The Trac Project] #2325: make trac-post-commit-hook
also set the owner to the commiter
The Trac Project
noreply at edgewall.com
Tue Nov 8 18:30:35 CST 2005
#2325: make trac-post-commit-hook also set the owner to the commiter
---------------------------------------------+------------------------------
Reporter: Pedro Algarvio <ufs at ufsoft.org> | Owner: jonas
Type: defect | Status: new
Priority: normal | Milestone:
Component: general | Version: 0.9
Severity: trivial | Keywords: |
---------------------------------------------+------------------------------
[source:trunk/contrib/trac-post-commit-hook trac-post-commit-hook] could
also set the owner of the ticket prior to closing it to the user
commiting.
{{{
#!diff
--- ./trac-post-commit-hook.old 2005-11-09 00:25:28.000000000 +0000
+++ ./trac-post-commit-hook 2005-11-09 00:26:29.000000000 +0000
@@ -151,6 +151,7 @@
for tkt_id in tickets:
try:
ticket = Ticket(self.env, tkt_id)
+ ticket['owner'] = self.author # Set ticket ownership to
commiter
ticket['status'] = 'closed'
ticket['resolution'] = 'fixed'
ticket.save_changes(self.author, self.msg, self.now)
}}}
--
Ticket URL: <http://projects.edgewall.com/trac/ticket/2325>
The Trac Project <http://trac.edgewall.com/>
More information about the Trac-Tickets
mailing list