coder / coder/internal

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

Open
#408 0 comments 0 reactions 0 assignees View on GitHub
m
Dominant language
No language data
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Builds upon https://github.com/coder/internal/issues/407 https://github.com/coder/internal/issues/406 https://github.com/coder/internal/issues/405 https://github.com/coder/internal/issues/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 = "git@github.com: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"
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.