File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212 }
1313}
1414
15- my $features =` git log \$ (git tag | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "feat:.*" | uniq` ;
16- my $fixes =` git log \$ (git tag | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "fix:.*" | uniq` ;
17- my $other =` git log \$ (git tag | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "other:.*" | uniq` ;
15+ my $features =` git log \$ (git tag --sort=version:refname | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "feat:.*" | uniq` ;
16+ my $fixes =` git log \$ (git tag --sort=version:refname | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "fix:.*" | uniq` ;
17+ my $other =` git log \$ (git tag --sort=version:refname | tail -n2 | head -n1)..HEAD --no-merges --oneline | grep -Eo "( other|chore|impr) :.*" | uniq` ;
1818
1919if ($latest ) {
20- $features =` git log \$ (git tag | tail -n1)..HEAD --no-merges --oneline | grep -Eo "feat:.*" | uniq` ;
21- $fixes =` git log \$ (git tag | tail -n1)..HEAD --no-merges --oneline | grep -Eo "fix:.*" | uniq` ;
22- $other =` git log \$ (git tag | tail -n1)..HEAD --no-merges --oneline | grep -Eo "other:.*" | uniq` ;
20+ $features =` git log \$ (git tag --sort=version:refname | tail -n1)..HEAD --no-merges --oneline | grep -Eo "feat:.*" | uniq` ;
21+ $fixes =` git log \$ (git tag --sort=version:refname | tail -n1)..HEAD --no-merges --oneline | grep -Eo "fix:.*" | uniq` ;
22+ $other =` git log \$ (git tag --sort=version:refname | tail -n1)..HEAD --no-merges --oneline | grep -Eo "( other|chore|impr) :.*" | uniq` ;
2323}
2424
2525my $hasFeatures =` printf "$features " | wc -l | tr -d '\n '` ;
@@ -45,7 +45,7 @@ sub generate {
4545
4646 for my $msg (@list ) {
4747 my $issue = ` echo "$msg " | grep -Eo "#.*" | tr -d '\n '` ;
48- $msg =~ s / ^(feat|other|fix): // gi ;
48+ $msg =~ s / ^(feat|other|fix|chore|impr ): // gi ;
4949
5050 if ($issue ne " " ) {
5151 my $issueId = substr $issue , 1;
You can’t perform that action at this time.
0 commit comments