Codespace creation from branch on template repo defaults to a codespace "created from the template" #61200
Unanswered
artificial-aidan
asked this question in
Codespaces
Replies: 1 comment
-
Thanks for bringing this up, we will look into it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
When inside a template repository, if you are trying to create a codespace from a branch (New with options... -> Select Branch) it will make a call to
github.com/codespaces
with the form valuecodespaces[template_repository_id]
set.This creates a codespace "From a template" that has no connection back to the repo it was created from. This makes it impossible to create repos on branches through the ui, when developing the template repository.
If you make the same call to
github.com/codespaces
without thetemplate_repository_id
set, then it works fine.I would expect the above image to create a codespace on a branch in a template repository, but instead i get this:
The second one in this picture was created by omitting the
template_repository_id
form value, and it successfully opened a codespace on the branch.Beta Was this translation helpful? Give feedback.
All reactions