We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8d4636 commit dfa77d4Copy full SHA for dfa77d4
1 file changed
.github/workflows/test.yml
@@ -109,7 +109,13 @@ jobs:
109
| while read -r URL; do
110
if [[ "$URL" == *"/pull/"* ]]; then
111
echo "Closing pull request: $URL"
112
+ PR_NUMBER="${URL##*/}"
113
+ branch="$(gh pr view "$PR_NUMBER" --repo github/accessibility-scanner-testing --json headRefName -q .headRefName)" || true
114
gh pr close "$URL" || echo "Failed to close pull request: $URL"
115
+ if [[ -n "$branch" ]]; then
116
+ echo "Deleting branch: $branch"
117
+ git push https://github.com/github/accessibility-scanner-testing --delete "$branch" || echo "Failed to delete branch: $branch"
118
+ fi
119
elif [[ "$URL" == *"/issues/"* ]]; then
120
echo "Closing issue: $URL"
121
gh issue close "$URL" || echo "Failed to close issue: $URL"
0 commit comments