Open
Description
Using the endpoint added in #405, query the git remote via coderd when a user creates a workspace build using the coder_git_repo
data source.
This ticket tracks the required work for this functionality in the CLI/API.
Implementation notes:
- If the user does not specify a URL for the
coder_git_repo
data source, we need to prompt the user to specify one so that we can check the remote. - If the user specifies a URL but not a branch, we should prompt the user to select a remote branch.
- If the user specifies both URL and branch, no prompt is required but the check should still be performed.
- We will likely need to use a similar approach to what the provider currently does when a parameter value is missing (
MISSING_TEMPLATE_PARAMETER
) if a user attempts to read the data source without having set a value fordata.coder_git_repo.foo.url
.