[TYPO3-team-core-v5] Changelog considerations

Bastian Waidelich bastian at typo3.org
Fri Jul 17 14:16:24 CEST 2009


Hi,

I've been quiet but active and started up a base package for interaction 
with SCM and a concrete implementation for Subversion. And as a first 
use case I've written a changelog package that pulls the SVN log from 
FLOW3 packages and creates a changelog from it (Robert, I'd like to 
discuss this with you - maybe on monday?).

Regarding the pre-commit hook I've made a little PHP script that checks 
the syntax of your commit message (only for specified repository paths 
of course) and intercepts the commit if the format is not valid.
I've just tested the script with Sebastian and it seems to work. But 
before activating it for the FLOW3 core packages I'd like to get a "go" 
from you ;)

That is the script:
http://scratchpad.cmlenz.net/ba44ab82a485073f7bf3ba675983d24e/

And this is how an invalid commit could look like:

Commit failed (details follow):
'pre-commit' hook failed with error output:
Lines of the commit message have to be in the following format
[<Type>] <Package> (<SubPackage>): <Message>
============================================
You're commit message seems to have an invalid format:
line #3 ("[FOO] FLOW3: Lorem ipsum dolor sit am...") - following parts 
are missing/invalid: <Type>, <Package>, <SubPackage>

line #4 ("FLOW3 (SubPackage): Foo bar Toll") - following parts are
missing/invalid: <Type>

line #5 ("[!!!][TASK] (SubPackage): Lorem ipsum...") - following parts 
are missing/invalid: <Package>

line #6 ("(SubPackage): Lorem ipsum dolor") - following parts are
missing/invalid: <Type>, <Package>

line #7 ("[TASK] FLOW3 foo (SubPackage): Lorem ...") - following parts 
are missing/invalid: <SubPackage>


Bastian


More information about the TYPO3-team-core-v5 mailing list