Skip to content

Commit 7962c8d

Browse files
authored
Merge pull request #6 from AlexAtkinson/fix/debug-counting-logic
debug counting logic
2 parents 80b00b6 + 75cbf84 commit 7962c8d

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

scripts/detectNewVersion.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,12 +187,12 @@ if [[ $incrementMajor != 'true' ]]; then
187187
IFS=$IFS_BAK
188188
fi
189189

190-
# echo "enh: $count_enhancement"
191-
# echo "feat: $count_feature"
192-
# echo "fix: $count_fix"
193-
# echo "bug: $count_bugfix"
194-
# echo "hot: $count_hotfix"
195-
# echo "ops: $count_ops"
190+
echo "enh: $count_enhancement"
191+
echo "feat: $count_feature"
192+
echo "fix: $count_fix"
193+
echo "bug: $count_bugfix"
194+
echo "hot: $count_hotfix"
195+
echo "ops: $count_ops"
196196

197197
if [[ -n $arg_f ]]; then
198198
true
@@ -225,9 +225,13 @@ elif [[ -n $count_fix || -n $count_bugfix || -n $count_hotfix || -n $count_ops ]
225225
newVersionMajor=$lastVersionMajor
226226
newVersionMinor=$lastVersionMinor
227227
[[ -n $count_fix ]] && newVersionPatch=$((lastVersionPatch + count_fix))
228+
echo $newVersionPatch
228229
[[ -n $count_bugfix ]] && newVersionPatch=$((newVersionPatch + count_bugfix))
230+
echo $newVersionPatch
229231
[[ -n $count_hotfix ]] && newVersionPatch=$((newVersionPatch + count_hotfix))
232+
echo $newVersionPatch
230233
[[ -n $count_ops ]] && newVersionPatch=$((newVersionPatch + count_ops))
234+
echo $newVersionPatch
231235
fi
232236

233237
newVersion=$(/usr/bin/env bash -c "${dir}/validateSemver.sh -9p full $newVersionMajor.$newVersionMinor.$newVersionPatch")

0 commit comments

Comments
 (0)