Skip to content

Commit 95d8683

Browse files
kurowskiclaude
andcommitted
Fix undefined $repo variable in cleanup-multidevs
The script referenced $repo but the workflow sets GH_REPO. This caused gh pr view to misparse arguments, concatenating PR numbers and failing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent fba0950 commit 95d8683

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

local/etc/uceap.d/cleanup-multidevs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function cleanup_multidevs() {
33
multidevs=($(terminus env:list $TERMINUS_SITE --field=id | grep -E '^pr-[0-9]+(-e2e)?$'))
44
for multidev in "${multidevs[@]}"; do
55
pr_id=$(echo "$multidev" | grep -oE '[0-9]+')
6-
state=$(gh pr view "$pr_id" --repo "$repo" --json state -q ".state")
6+
state=$(gh pr view "$pr_id" --repo "$GH_REPO" --json state -q ".state")
77
if [[ "$state" != "OPEN" ]]; then
88
echo "PR #$pr_id ($multidev) is $state"
99
terminus env:delete "$TERMINUS_SITE.$multidev" --yes

0 commit comments

Comments
 (0)