# Create a repository with a file so it has a default branch
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

# Clone the repo
exec gh repo clone $ORG/$SCRIPT_NAME-$RANDOM_STRING
cd $SCRIPT_NAME-$RANDOM_STRING

# Create an issue assigned to the current user
exec gh issue create --title 'Status test issue' --body 'Testing issue status' --assignee @me

# Check issue status shows the issue
exec gh issue status
stdout 'Status test issue'
