We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40fb215 commit 4b7b3b4Copy full SHA for 4b7b3b4
committable.pl
@@ -26,6 +26,8 @@ package Committable;
26
27
use Cwd qw(cwd abs_path);
28
29
+use constant LIMIT => 300;
30
+
31
my $name = 'committable';
32
33
sub process_message {
@@ -54,7 +56,7 @@ sub process_message {
54
56
55
57
@commits = split("\n", $result);
58
my $num_commits = scalar @commits;
- return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > 10);
59
+ return "Too many commits ($num_commits) in range, you're only allowed 10" if ($num_commits > LIMIT);
60
} else {
61
@commits = $config;
62
}
0 commit comments