Skip to content

Commit

Permalink
Skip empty cards
Browse files Browse the repository at this point in the history
Signed-off-by: Fran Mulero <[email protected]>
  • Loading branch information
fmulero committed Nov 30, 2023
1 parent 95a491b commit 8837393
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ while read -r legacy_project_board_column_id; do
echo "new_project_status_field_option_id=${new_project_status_field_option_id}"

while read -r legacy_project_board_card_id; do
if [[ -z "$legacy_project_board_card_id" ]]; then
continue
fi
echo "legacy_project_board_card_id=${legacy_project_board_card_id}"
legacy_project_board_card="$(jq -r 'map(select(.id == $legacy_project_board_card_id)) | .[0]' --argjson legacy_project_board_card_id "${legacy_project_board_card_id}" <<< "$legacy_project_board_cards")"
legacy_project_board_card_content_url="$(jq -r '.content_url // ""' <<< "${legacy_project_board_card}")"
Expand Down

0 comments on commit 8837393

Please sign in to comment.