Skip to content

Commit

Permalink
Update checkPullRequestTitle.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasBrostrom authored Nov 7, 2023
1 parent 818d273 commit 66ae27a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tools/checkPullRequestTitle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ string="$*"


echo "Validating '$string'..."
if [[ ${#string} == 0 ]]; then echo "SUCCESS (Empty name)"; exit 0; fi
if [[ ${#string} == 0 ]]; then echo "SUCCESS: Empty name (Assumed bransh run)"; exit 0; fi

if [[ ${#string} -lt 20 ]]; then _throw "short name"; fi
if [[ $string == "Update cba_settings.sqf" ]]; then _throw "bad name"; fi
if [[ $string == "Update settings" ]]; then _throw "bad name"; fi
if [[ ${#string} -lt 20 ]]; then _throw "Short name"; fi
if [[ $string == "Update cba_settings.sqf" ]]; then _throw "Bad name"; fi
if [[ $string == "Update settings" ]]; then _throw "Bad name"; fi

# Descriptor
if [[ $string != *"Added"* ]]; then
Expand All @@ -24,7 +24,7 @@ if [[ $string != *"Added"* ]]; then
if [[ $string != *"Updated"* ]]; then
if [[ $string != *"updated"* ]]; then
if [[ $string != *"Adjusted"* ]]; then
if [[ $string != *"adjusted"* ]]; then _throw "missing descriptor [Added, Fixed, Adjusted, Updated]"; fi
if [[ $string != *"adjusted"* ]]; then _throw "Missing descriptor [Added, Fixed, Adjusted, Updated]"; fi
fi
fi
fi
Expand Down

0 comments on commit 66ae27a

Please sign in to comment.