Skip to content

Commit

Permalink
chore: update jira automation script
Browse files Browse the repository at this point in the history
  • Loading branch information
markusrf committed May 8, 2024
1 parent 6681607 commit b17e67c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/create-jira-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ release_version=$1
webhook_url=$2

# Create array of sorted tags
mapfile -t tags < <(git tag | sort -Vr)
mapfile -t tags < <(git tag --list 'v*.*.*' | sort -Vr)

echo "Found tags:"
echo "${tags[@]}"
Expand All @@ -25,7 +25,7 @@ mapfile -t issues < <(git log "$previous_tag".."$release_version" | grep -oP 'EC
issues_json=$(jq --compact-output --null-input '$ARGS.positional' --args -- "${issues[@]}")

# Create webhook body
body=$(jq --arg libecalcVersion "$release_version" --argjson issues_json "$issues_json" -Rn '{"issues": $issues_json|unique, "libecalcVersion": $libecalcVersion}')
body=$(jq --arg version "$release_version" --argjson issues_json "$issues_json" -Rn '{"issues": $issues_json|unique, "version": $version}')

echo "$body"

Expand Down

0 comments on commit b17e67c

Please sign in to comment.