final move of files
[web.mtrack] / MTrack / CommitCheck / RequiresTimeReference.php
1 <?php 
2
3
4 class MTrackCommitCheck_RequiresTimeReference implements IMTrackCommitListener {
5    
6
7   function vetoCommit($msg, $files, $actions, $checker) {
8     $spent = false;
9     foreach ($actions as $act) {
10       if (isset($act[2])) {
11         return true;
12       }
13     }
14     return "You must include at least one ticket and time reference in your\n".
15       "commit message, using the \"refs #123 (spent 2.5)\" notation.\n"
16       ;
17   }
18
19   function postCommit($msg, $files, $actions) {
20     return true;
21   }
22 }