http://trac-hacks.org/wiki/EmailtoTracScript
/L

Alan wrote:
> Hi.  I am a new time member to this list.  We are trying to put
> together a simple code review infrastructure.  I have a shell script
> going that can generate the following text:
> 
>     Change set [4813]
> 
>     This is an example SVN commit message of a change I just made.
>     commit-review:joe
> 
>     $COMMIT_REVIEW_DIFF $SVN/trunk/[EMAIL PROTECTED],4813}
> 
>     Review allocated to: nobody
> 
> I can change around the text. The idea is I want to create a new
> ticket that has at least the change set and a list of commands a
> reviewer can copy/paste into a shell to review the changes. The change
> set would link up to the Trac built in diff facility.  The other
> commands is if someone wants to use say tkdiff instead.  Anyway, I can
> produce the text I want pretty easily just in the shell script and
> work out the various properties for the new ticket.
> 
> I was going to create a new "type" in my Trac installation for "commit-
> review" and so wanted on every SVN commit (or possibly only if the
> commit message contained the magic string "commit-review:<user>") to
> automatically create a new Trac ticket which was for the specified
> user to review the commit.  I have a commit hook shell script working
> that collects all the information I need to create a new ticket.  I
> just don't know how to create a ticket from a shell script.
> 
> Sorry if there is a standard way to do this.  I just cannot find it.
> 'trac-admin' for example can remove tickets, but does not seem to be
> able to create tickets.
> 
> Any help greatly appreciated!!!
> 
> Alan
> 
> 
> My problem is I don't know Python or the Trac internals.  Does anyone
> have or can anyone point me at some sample Python code that can say
> read from stdin the description with command line arguments to
> populate the short summary, type, priority, assign-to, etc settings
> (just using argv[1], argv[2] etc is fine) of a new ticket?  I was
> hoping this would be a few seconds for someone who knew the internals
> - but would be hours or days for me to learn it all from scratch.
> 
> Any help greatly appreciated!
> > 
> 



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/trac-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to