Skip to content

Commit

Permalink
πŸ§‘β€πŸ’» Use current repo for finding codespace and filter on Available state
Browse files Browse the repository at this point in the history
  • Loading branch information
roycornelissen committed Nov 10, 2024
1 parent 386ca55 commit fa798d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .devcontainer/post-create.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh

my_codespace=$(gh codespace list -R XpiritCommunityEvents/LegacyLiftOffWorkshop --json name | jq -r '.[0].name')
my_repo=$(gh repo view --json name -q ".name")
my_codespace=$(gh codespace list -R XpiritCommunityEvents/$my_repo -q '.[] | select( .state == "Available" )' --json name,state | jq -r '.name')

gh issue create --assignee roycornelissen,vriesmarcel --title $my_codespace --label "provisioning" --body "Please provision my codespace" -R XpiritCommunityEvents/LegacyLiftOffWorkshop

gh codespace ports visibility 7219:public --codespace $my_codespace

0 comments on commit fa798d8

Please sign in to comment.