Opened 19 years ago
Closed 15 years ago
#2325 closed enhancement (fixed)
make trac-post-commit-hook also set the owner to the commiter
Reported by: | Owned by: | Remy Blank | |
---|---|---|---|
Priority: | normal | Milestone: | 0.12 |
Component: | general | Version: | 0.9 |
Severity: | trivial | Keywords: | CommitTicketUpdate |
Cc: | ufs@… | Branch: | |
Release Notes: | |||
API Changes: | |||
Internal Changes: |
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 (0)
Change History (11)
comment:1 by , 19 years ago
Type: | defect → enhancement |
---|
comment:2 by , 19 years ago
Cc: | added |
---|
comment:3 by , 18 years ago
Milestone: | → 0.11 |
---|
comment:4 by , 17 years ago
follow-up: 6 comment:5 by , 16 years ago
This patch makes no sense. IMO the "owner" of a ticket is the person responsible for overseeing its progress, and not necessarily the person who is doing commits that reference it.
Imagine if you have 4 or 5 people making commits that reference the same ticket, the owner field would be jumping all over the place.
comment:6 by , 16 years ago
Replying to Kamil Kisiel <kamil@…>:
This patch makes no sense. IMO the "owner" of a ticket is the person responsible for overseeing its progress, and not necessarily the person who is doing commits that reference it.
Imagine if you have 4 or 5 people making commits that reference the same ticket, the owner field would be jumping all over the place.
I agree, it makes no sense. Ownership should not be related to who commits a change. In our environment, I expect only one person to commit changes for each ticket. A ticket's ownership should only change via the browser interface.
comment:8 by , 16 years ago
Milestone: | 0.11-retriage → 0.12 |
---|
Replying to palgarvio:
My initial idea was if the ticket had no owner.
… then please update the patch accordingly ;-)
comment:9 by , 15 years ago
Keywords: | CommitTicketUpdate added |
---|---|
Milestone: | 0.12 → 0.13 |
This will eventually have to be updated w.r.t. the new CommitTicketUpdatePlugin (see r8094).
comment:10 by , 15 years ago
Milestone: | 0.13 → 0.12 |
---|---|
Owner: | changed from | to
Oh, that's easy enough (setting the owner, but only if no owner was set before). I can do that.
comment:11 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
With [8398], the owner field is set to the committer when the plugin closes a ticket, and the owner field was empty.
Replying to Pedro Algarvio <ufs@ufsoft.org>:
It could, but should it? A nice clean-cut decision ticket, finally :-) Line into the script or not?
As this has stayed open with no registered duplicates or other known demands for this feature, I suppose someone has to speak up in favour of it, or else we might as well close it as 'wontfix'.
Cast your votes, people!