#96 closed enhancement (fixed)
Automatic closing of ticket after check in
Reported by: | Owned by: | Jonas Borgström | |
---|---|---|---|
Priority: | low | Milestone: | 0.7 |
Component: | ticket system | Version: | 0.5.1 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
It would be handy if checking in the fix for a ticket could automatically close the ticket. For example the comment for [112] says that it "fixes #50" and then the next thing in the timeline is: "Ticket #50 closed by daniel"
This could be streamlined if Trac could spot the "fixes #50" in the comment and close the ticket, perhaps after adding a comment to the ticket saying "Fixed by [112]".
To avoid accidental closing of tickets perhaps the syntax in the check in message should be something like:
[fixes #50]
Attachments (0)
Change History (7)
comment:1 by , 21 years ago
Milestone: | → 0.6 |
---|
comment:2 by , 21 years ago
I agree, it's better to do this in a post-commit script in svn.. Thinking about it, there's a possible (and entirely subjective perspective of the individual team) advantage of not closing tickets automatically - an extra round of auditing, or at least eyeballing, of patches coming in before closing the related ticket.
Just a thought. It is a neat and useful feature though.
There's more stuff we could do in post-commit too, like synchronize the db or mop the floor :-)
comment:3 by , 21 years ago
Status: | new → assigned |
---|
comment:4 by , 21 years ago
Milestone: | 0.6 → 0.7 |
---|
The script was added to the repository in [294]. I'm still leaving this ticket open until the script has some sort of documentation in the wiki. This won't block 0.6 any more though.
comment:6 by , 19 years ago
More about automatically changing tickets with SCM commits can be found in this FAQ entry or search for "trac-post-commit-hook"
It took me a bit too long to find that info, this ticket was my first Google hit. Hopefully this comment will save some people some time :)
comment:7 by , 13 years ago
The link (mentioned above) is has moved to: http://trac.edgewall.org/wiki/TracFaq#can-trac-automatically-update-a-ticket-when-i-commit-a-changeset
Yes, this is a good idea, the debian bug tracking system does something similar.
But we don't want to force this behavour on people, so a simple (optional) svn post commit script might be a better idea…