Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -177,11 +177,14 @@ jobs:
OTHER=""
CONTRIBUTORS=""

# Store regex in variable to avoid bash parsing issues with special characters
COMMIT_PATTERN='^([a-z]+)(\(([^)]+)\))?!?:[[:space:]](.+)$'

while IFS='|' read -r hash subject author; do
[ -z "$hash" ] && continue

# Extract commit type and scope
if [[ $subject =~ ^([a-z]+)(\(([^)]+)\))?!?:\ (.+)$ ]]; then
if [[ $subject =~ $COMMIT_PATTERN ]]; then
type="${BASH_REMATCH[1]}"
scope="${BASH_REMATCH[3]}"
description="${BASH_REMATCH[4]}"
Expand Down