Skip to content

Commit

Permalink
Add to Milestone: Conditional check for related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
justinretzolk committed Jul 27, 2023
1 parent b4cb690 commit f24be6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .ci/scripts/add-to-milestone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f24be6d

Please sign in to comment.