updated test script

This commit is contained in:
Armin Briegel
2022-09-02 12:44:58 +02:00
parent 18b5d87760
commit 003647bab2
2 changed files with 12 additions and 7 deletions

View File

@@ -121,7 +121,6 @@ chmod +x $destination_file
if [[ $runScript -eq 1 ]]; then
$destination_file "$@"
exit_code=$?
echo "exit_code is $exit_code"
fi
# copy the script to root of repo when flag is set

View File

@@ -9,17 +9,23 @@
pr_num=${1:?"arg 1 is the PR number"}
label=${2:?"arg 2 is label"}
gh pr checkout $pr_num -b "pr/$pr_num"
if ! gh pr checkout $pr_num -b "pr/$pr_num"; then
exit $?
fi
if ! utils/assemble.sh $label; then
echo "something went wrong, stopping here"
else
echo
echo "All good! merging..."
echo "All good!"
echo
read -q query"?Merge into main? (y/n)"
if [[ $query == 'y' ]]; then
git checkout main
git merge "pr/$pr_num" -m "new label: $label"
git branch -d "pr/$pr_num"
gh pr comment $pr_num --body 'Thank you!'
fi
fi