Skip to content

Commit

Permalink
Merge pull request #32722 from hashicorp/m-add-to-milestone-check
Browse files Browse the repository at this point in the history
Add to Milestone: Conditional check for related issues
  • Loading branch information
justinretzolk authored Jul 28, 2023
2 parents d1a767a + f24be6d commit ac9889b
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 ac9889b

Please sign in to comment.