From f24be6dc5a1ae51353351dcb725aa8617e8c71cd Mon Sep 17 00:00:00 2001 From: Justin Retzolk <44710313+justinretzolk@users.noreply.github.com> Date: Thu, 27 Jul 2023 14:15:48 -0500 Subject: [PATCH] Add to Milestone: Conditional check for related issues --- .ci/scripts/add-to-milestone.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.ci/scripts/add-to-milestone.sh b/.ci/scripts/add-to-milestone.sh index 9027fec4b48..aff0d18df41 100755 --- a/.ci/scripts/add-to-milestone.sh +++ b/.ci/scripts/add-to-milestone.sh @@ -77,4 +77,6 @@ ISSUES_URLS=($(jq \ gh pr edit "$PULL_URL" --milestone "$MILESTONE_NAME" # Add issues to milestone -gh issue edit "${ISSUES_URLS[@]}" --milestone "$MILESTONE_NAME" +if [[ "${#ISSUES_URLS[@]}" -ne 0 ]]; then + gh issue edit "${ISSUES_URLS[@]}" --milestone "$MILESTONE_NAME" +fi