From 6004fc2cd89c5cdf9c749cbfd647aca2d96ab949 Mon Sep 17 00:00:00 2001 From: Kynan Ware <47394200+BagToad@users.noreply.github.com> Date: Wed, 12 Mar 2025 10:39:25 -0600 Subject: [PATCH] fix(pr create): use curly brace for vars in AT --- .../testdata/pr/pr-create-no-local-repo.txtar | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/acceptance/testdata/pr/pr-create-no-local-repo.txtar b/acceptance/testdata/pr/pr-create-no-local-repo.txtar index 931d9e216..a6e06cdcd 100644 --- a/acceptance/testdata/pr/pr-create-no-local-repo.txtar +++ b/acceptance/testdata/pr/pr-create-no-local-repo.txtar @@ -2,23 +2,23 @@ exec gh auth setup-git # Create a repository with a file so it has a default branch -exec gh repo create $ORG/$SCRIPT_NAME-$RANDOM_STRING --add-readme --private +exec gh repo create ${ORG}/${SCRIPT_NAME}-${RANDOM_STRING} --add-readme --private # Defer repo cleanup -defer gh repo delete --yes $ORG/$SCRIPT_NAME-$RANDOM_STRING +defer gh repo delete --yes ${ORG}/${SCRIPT_NAME}-${RANDOM_STRING} # Clone the repo -exec gh repo clone $ORG/$SCRIPT_NAME-$RANDOM_STRING +exec gh repo clone ${ORG}/${SCRIPT_NAME}-${RANDOM_STRING} # Prepare a branch to PR -cd $SCRIPT_NAME-$RANDOM_STRING +cd ${SCRIPT_NAME}-${RANDOM_STRING} exec git checkout -b feature-branch exec git commit --allow-empty -m 'Empty Commit' exec git push -u origin feature-branch # Leave the repo so there's no local repo -cd $WORK +cd ${WORK} # Create the PR -exec gh pr create --title 'Feature Title' --body 'Feature Body' --repo $ORG/$SCRIPT_NAME-$RANDOM_STRING --head feature-branch -stdout https://${GH_HOST}/${ORG}/${SCRIPT_NAME}-${RANDOM_STRING}/pull/1 +exec gh pr create --title 'Feature Title' --body 'Feature Body' --repo ${ORG}/${SCRIPT_NAME}-${RANDOM_STRING} --head feature-branch +stdout https://${GH_HOST}/${ORG}/${SCRIPT_NAME}-${RANDOM_STRING}/pull/1 \ No newline at end of file