Skip to content

Commit

Permalink
Strip empty line when no issues are found (#14083)
Browse files Browse the repository at this point in the history
Signed-off-by: Ahmed Kamal <[email protected]>
  • Loading branch information
kim0 authored Jul 8, 2022
1 parent 05c4d2f commit 7530673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/set-milestone-from-base-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
echo "Looking for any uplifted PRs"
readarray -t prs < <(echo "${pr_body}" | grep -ioP "${UPLIFT_PR_REGEX}" || :)
readarray -t issues_uplift_pr < <(echo "${prs[@]}" | xargs -n 1 -I{} gh pr view {} -R brave/brave-core --json body --jq ".body" | normalize_issue_links | grep -ioP "${RESOLVE_ISSUE_REGEX}")
readarray -t issues < <(printf "%s\n" "${issues_pr[@]}" "${issues_uplift_pr[@]}"| sort -u)
readarray -t issues < <(printf "%s\n" "${issues_pr[@]}" "${issues_uplift_pr[@]}"| sort -u | sed '/^\s*$/d')
echo "Relevant issues detected:"
printf "%s\n" "${issues[@]}"
Expand Down

0 comments on commit 7530673

Please sign in to comment.