Skip to content

Commit

Permalink
fix the fix that introduced new things to fix in this fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mircea-pavel-anton committed May 21, 2024
1 parent 75caeab commit 43a4023
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/generate-pr-name.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ case ${#parts[@]} in
# Format: <type>/<message>
type="${parts[0]}"
message="${parts[1]}"
message=$(echo "$message" | tr '-_' ' ')
message=$(echo "$message" | tr '-' ' ' | tr '_' ' ')
echo "$type: $message"
;;
3)
# Format: <type>/<scope>/<message>
type="${parts[0]}"
scope="${parts[1]}"
message="${parts[2]}"
message=$(echo "$message" | tr '-_' ' ')
message=$(echo "$message" | tr '-' ' ' | tr '_' ' ')
echo "$type($scope): $message"
;;
*)
Expand Down

0 comments on commit 43a4023

Please sign in to comment.