Skip to content

Commit

Permalink
Update generate-pr-to-plugins.sh
Browse files Browse the repository at this point in the history
Signed-off-by: Fede Galland <[email protected]>
  • Loading branch information
f-galland authored Jan 6, 2025
1 parent ab01301 commit b09e508
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ecs/scripts/generate-pr-to-plugins.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,12 @@ create_or_update_pr() {

existing_pr=$(gh pr list --head "$branch_name" --json number --jq '.[].number')
modules=$(IFS=,; echo "${relevant_modules[*]}")
title="Update ECS templates for modified modules: ${modules}"
body="This PR updates the ECS templates for the following modules: ${modules}."
# Format modules
modules_title=$(IFS=", "; echo "${relevant_modules[*]}")
modules_body=$(printf -- '- %s\n' "${relevant_modules[@]}")
# Create title and body with formatted modules list
title="Update ECS templates for modified modules: ${modules_title[*]}"
body="This PR updates the ECS templates for the following modules:\n${modules_body}"

if [ -z "$existing_pr" ]; then
gh pr create \
Expand Down

0 comments on commit b09e508

Please sign in to comment.