Add acceptance test for project-create and project-delete

This commit is contained in:
Tyler McGoffin 2024-10-24 12:53:52 -07:00
parent 8b5c5385c7
commit 7148304344

View file

@ -0,0 +1,12 @@
# Create a project
exec gh project create --owner=$ORG --title='acceptance-test-project-title'
# Confirm the project has been created and get the project number
exec gh project list --owner=$ORG --format=json --jq='.projects[] | select(.title == "acceptance-test-project-title") | .number'
stdout2env PROJECT_NUMBER
# Delete the project
exec gh project delete --owner=$ORG $PROJECT_NUMBER
# Confirm the project has been deleted
! exec gh project view --owner=$ORG $PROJECT_NUMBER