Modify

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#595 closed enhancement (worksforme)

SVN Commit Hook to Auto Create a Ticket?

Reported by: Eddie Parker Owned by: anybody
Priority: normal Component: Request-a-Hack
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Hello!

I'm not sure if this is already done or how I would go about doing this, but I'd love to have something that parses a message from SVN and creates a ticket in Subversion.

So I can do:

svn commit --message="Fixed X, Y, Z. NEWBUG: Just a TODO reminder. Some code needs to be cleaned up."

Having it backreference the commit would be bonus points. ;)

Thanks!

Attachments (0)

Change History (4)

comment:1 Changed 11 years ago by Eddie Parker

Cc: trac.eddieparker@… added; anonymous removed

comment:2 Changed 11 years ago by anonymous

Trac Release: 0.90.10

I'm assuming that you ment to say "create a ticket in Trac" instead of "create a ticket in Subversion" but I think that what you are looking for is already a part of Trac. I haven't used it yet, but it does modify tickets based on svn comments. Don't know about referencing the commit, though.

Check out theTrac FAQ for details on how to use post_commit script.

comment:3 Changed 11 years ago by Alec Thomas

Cc: anonymous added; trac.eddieparker@… removed

Don't use whitelist E-Mail addresses in CC lists. It's very annoying.

comment:4 in reply to:  2 Changed 11 years ago by Alec Thomas

Resolution: worksforme
Status: newclosed

Replying to anonymous:

I'm assuming that you ment to say "create a ticket in Trac" instead of "create a ticket in Subversion" but I think that what you are looking for is already a part of Trac. I haven't used it yet, but it does modify tickets based on svn comments. Don't know about referencing the commit, though.

Check out theTrac FAQ for details on how to use post_commit script.

This AC is 100% correct.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anybody.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.