Post-commit集成配置

Post-commit集成配置是指当svn commit命令完成后,通过post-commit脚本自动提交一个新的Review Request,由指定的评审人对代码进行评审。

通过post-commit脚本,获取本次提交的comment,用户,bugzilla ID对应的headline。在现有的脚本中添加调用post-review命令提交Review Request:

post-review -p --username=admin --password=admin --submit-as=$user --bugs-closed=$bugid --summary=$bugheadline --description=$svnlogcomments -r %2

其中:

$user:对应svn commiter,通过脚本获取;

$bugid:svn 提交时关联的Bugzilla ID;

$bugheadline:关联的Bugzilla ID对应的Headline;

$svnlogcomments:svn提交时填写的comment,作为Review Request的Description。