Skip to content

Commit 4eb3f59

Browse files
Jason Barnettclaude
authored andcommitted
chore(git-clone): bump version to 1.3.0
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 7a0d546 commit 4eb3f59

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

registry/coder/modules/git-clone/README.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ This module allows you to automatically clone a repository by URL and skip if it
1414
module "git-clone" {
1515
count = data.coder_workspace.me.start_count
1616
source = "registry.coder.com/coder/git-clone/coder"
17-
version = "1.2.2"
17+
version = "1.3.0"
1818
agent_id = coder_agent.example.id
1919
url = "https://github.com/coder/coder"
2020
}
21+
2122
```
2223

2324
## Examples
@@ -28,11 +29,12 @@ module "git-clone" {
2829
module "git-clone" {
2930
count = data.coder_workspace.me.start_count
3031
source = "registry.coder.com/coder/git-clone/coder"
31-
version = "1.2.2"
32+
version = "1.3.0"
3233
agent_id = coder_agent.example.id
3334
url = "https://github.com/coder/coder"
3435
base_dir = "~/projects/coder"
3536
}
37+
3638
```
3739

3840
### Git Authentication
@@ -43,11 +45,12 @@ To use with [Git Authentication](https://coder.com/docs/v2/latest/admin/git-prov
4345
module "git-clone" {
4446
count = data.coder_workspace.me.start_count
4547
source = "registry.coder.com/coder/git-clone/coder"
46-
version = "1.2.2"
48+
version = "1.3.0"
4749
agent_id = coder_agent.example.id
4850
url = "https://github.com/coder/coder"
4951
}
5052
53+
5154
data "coder_external_auth" "github" {
5255
id = "github"
5356
}
@@ -69,11 +72,12 @@ data "coder_parameter" "git_repo" {
6972
module "git_clone" {
7073
count = data.coder_workspace.me.start_count
7174
source = "registry.coder.com/coder/git-clone/coder"
72-
version = "1.2.2"
75+
version = "1.3.0"
7376
agent_id = coder_agent.example.id
7477
url = data.coder_parameter.git_repo.value
7578
}
7679
80+
7781
# Create a code-server instance for the cloned repository
7882
module "code-server" {
7983
count = data.coder_workspace.me.start_count
@@ -103,13 +107,14 @@ Configuring `git-clone` for a self-hosted GitHub Enterprise Server running at `g
103107
module "git-clone" {
104108
count = data.coder_workspace.me.start_count
105109
source = "registry.coder.com/coder/git-clone/coder"
106-
version = "1.2.2"
110+
version = "1.3.0"
107111
agent_id = coder_agent.example.id
108112
url = "https://github.example.com/coder/coder/tree/feat/example"
109113
git_providers = {
110114
"https://github.example.com/" = {
111115
provider = "github"
112116
}
117+
113118
}
114119
}
115120
```
@@ -122,10 +127,11 @@ To GitLab clone with a specific branch like `feat/example`
122127
module "git-clone" {
123128
count = data.coder_workspace.me.start_count
124129
source = "registry.coder.com/coder/git-clone/coder"
125-
version = "1.2.2"
130+
version = "1.3.0"
126131
agent_id = coder_agent.example.id
127132
url = "https://gitlab.com/coder/coder/-/tree/feat/example"
128133
}
134+
129135
```
130136

131137
Configuring `git-clone` for a self-hosted GitLab running at `gitlab.example.com`
@@ -134,13 +140,14 @@ Configuring `git-clone` for a self-hosted GitLab running at `gitlab.example.com`
134140
module "git-clone" {
135141
count = data.coder_workspace.me.start_count
136142
source = "registry.coder.com/coder/git-clone/coder"
137-
version = "1.2.2"
143+
version = "1.3.0"
138144
agent_id = coder_agent.example.id
139145
url = "https://gitlab.example.com/coder/coder/-/tree/feat/example"
140146
git_providers = {
141147
"https://gitlab.example.com/" = {
142148
provider = "gitlab"
143149
}
150+
144151
}
145152
}
146153
```
@@ -155,11 +162,12 @@ For example, to clone the `feat/example` branch:
155162
module "git-clone" {
156163
count = data.coder_workspace.me.start_count
157164
source = "registry.coder.com/coder/git-clone/coder"
158-
version = "1.2.2"
165+
version = "1.3.0"
159166
agent_id = coder_agent.example.id
160167
url = "https://github.com/coder/coder"
161168
branch_name = "feat/example"
162169
}
170+
163171
```
164172

165173
## Git clone with different destination folder
@@ -173,12 +181,13 @@ For example, this will clone into the `~/projects/coder/coder-dev` folder:
173181
module "git-clone" {
174182
count = data.coder_workspace.me.start_count
175183
source = "registry.coder.com/coder/git-clone/coder"
176-
version = "1.2.2"
184+
version = "1.3.0"
177185
agent_id = coder_agent.example.id
178186
url = "https://github.com/coder/coder"
179187
folder_name = "coder-dev"
180188
base_dir = "~/projects/coder"
181189
}
190+
182191
```
183192

184193
## Git shallow clone
@@ -208,11 +217,12 @@ This is useful for scenarios like using a local mirror with `--reference` to spe
208217
module "git-clone" {
209218
count = data.coder_workspace.me.start_count
210219
source = "registry.coder.com/coder/git-clone/coder"
211-
version = "1.2.2"
220+
version = "1.3.0"
212221
agent_id = coder_agent.example.id
213222
url = "https://github.com/coder/coder"
214223
clone_args = "--reference /mnt/git-mirrors/coder.git"
215224
}
225+
216226
```
217227

218228
You can also combine multiple arguments:
@@ -221,11 +231,12 @@ You can also combine multiple arguments:
221231
module "git-clone" {
222232
count = data.coder_workspace.me.start_count
223233
source = "registry.coder.com/coder/git-clone/coder"
224-
version = "1.2.2"
234+
version = "1.3.0"
225235
agent_id = coder_agent.example.id
226236
url = "https://github.com/coder/coder"
227237
clone_args = "--reference /mnt/git-mirrors/coder.git --dissociate"
228238
}
239+
229240
```
230241

231242
## Post-clone script
@@ -237,7 +248,7 @@ This is useful for running initialization tasks like installing dependencies or
237248
module "git-clone" {
238249
count = data.coder_workspace.me.start_count
239250
source = "registry.coder.com/coder/git-clone/coder"
240-
version = "1.2.2"
251+
version = "1.3.0"
241252
agent_id = coder_agent.example.id
242253
url = "https://github.com/coder/coder"
243254
post_clone_script = <<-EOT
@@ -249,4 +260,5 @@ module "git-clone" {
249260
make setup
250261
EOT
251262
}
263+
252264
```

0 commit comments

Comments
 (0)