3 * scmhook checkLog Plugin Class
4 * Copyright 2011, Franck Villaume - Capgemini
5 * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
7 * This file is part of FusionForge. FusionForge is free software;
8 * you can redistribute it and/or modify it under the terms of the
9 * GNU General Public License as published by the Free Software
10 * Foundation; either version 2 of the Licence, or (at your option)
13 * FusionForge is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along
19 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 require_once $gfplugins.'scmhook/common/scmhook.class.php';
26 class checkLog extends scmhook {
28 $this->name = "Check log";
29 $this->description = _('Commit message must not be empty.');
30 $this->classname = "checkLog";
31 $this->command = 'sh '.dirname(__FILE__).'/hooks/checklog/check-log.sh "$1" "$2"';
32 $this->hooktype = "pre-commit";
33 $this->label = "scmsvn";
34 $this->unixname = "checklog";