Skip to content

Git Flow: coder/coder/v2/cli: query coderd for git repo branches #406

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #410
johnstcn opened this issue Feb 24, 2025 · 0 comments
Open
Tracked by #410

Git Flow: coder/coder/v2/cli: query coderd for git repo branches #406

johnstcn opened this issue Feb 24, 2025 · 0 comments
Labels
m estimated at less than 1 week of work

Comments

@johnstcn
Copy link
Member

Relates to #404 and #405

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 for data.coder_git_repo.foo.url.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m estimated at less than 1 week of work
Projects
None yet
Development

No branches or pull requests

1 participant