Skip to content

Git Flow: coder/modules: create unified git-repo module #408

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/modules: create unified git-repo module #408

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

Comments

@johnstcn
Copy link
Member

Builds upon #407 #406 #405 #404

Create a new unified git-flow module that comprises the functionality of both the existing git-config and git_clone modules:

data "coder_external_auth" "github" {
  id = "github"
}

module "git-repo" {
	# Base directory to clone the repository
	dir = "$HOME"
	# Set GitHub as authentication method (Optional, required for private repos)
	auth = data.coder_external_auth.github.id
	# URL for a repository. When the url is set, the user is not prompted to fill in a repo
	url = "[email protected]:coder/coder.git"
	# Branch, tag or commit hash. When ref is set, the autocomplete will not allow the user to pick a ref
	ref = "main"
@johnstcn johnstcn added the m estimated at less than 1 week of work label Feb 24, 2025
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