diff --git a/github-dev/cleanup-pr-branch b/github-dev/cleanup-pr-branch index 51b5980..8868f4f 100755 --- a/github-dev/cleanup-pr-branch +++ b/github-dev/cleanup-pr-branch @@ -40,10 +40,12 @@ main(){ fi echo "Deleting branch ref $ref for owner ${owner}/${repo}..." + set -x curl -XDELETE -sSL \ -H "${AUTH_HEADER}" \ -H "${API_HEADER}" \ - "/repos/${owner}/${repo}/git/refs/heads/${ref}" + "${URI}/repos/${owner}/${repo}/git/refs/heads/${ref}" + set +x echo "Branch delete success!" fi