Skip to content

Commit

Permalink
Update for consistency
Browse files Browse the repository at this point in the history
Co-authored-by: Polykarpos Kossyfas <44210251+pkossyfas@users.noreply.github.com>
  • Loading branch information
colbynh and pkossyfas authored Feb 10, 2022
1 parent 7e81c4d commit 2bb3f87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions delete-old-branches
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ is_pr_open_on_branch() {
fi

local br=${1}
open_prs_branches=$(curl -s -H "Accept: application/vnd.github.v3+json" -H "Authorization: token ${GITHUB_TOKEN}" \
"https://api.github.com/repos/${REPO}/pulls" | jq '.[].head.ref' | tr -d '"')
open_prs_branches=$(curl -X GET -s -H "Authorization: token ${GITHUB_TOKEN}" \
"${BASE_URI}/repos/${REPO}/pulls" | jq '.[].head.ref' | tr -d '"')

for pr_br in $open_prs_branches; do
if [[ "${pr_br}" == "${br}" ]]; then
Expand Down

0 comments on commit 2bb3f87

Please sign in to comment.