cli/acceptance/testdata/issue/issue-comment-edit-last-without-comments-errors.txtar
2025-03-19 08:05:51 -04:00

20 lines
613 B
Text

# Setup environment variables used for testscript
env REPO=${SCRIPT_NAME}-${RANDOM_STRING}
# Create a repository with a file so it has a default branch
exec gh repo create ${ORG}/${REPO} --add-readme --private
# Defer repo cleanup
defer gh repo delete --yes ${ORG}/${REPO}
# Clone the repo
exec gh repo clone ${ORG}/${REPO}
# Create an issue in the repo
cd ${REPO}
exec gh issue create --title 'Feature Request' --body 'Feature Body'
stdout2env ISSUE_URL
# Comment on the issue
! exec gh issue comment ${ISSUE_URL} --edit-last --body 'Looks like a great feature!'
stderr 'no comments found for current user'