Skip to content

Commit a562f48

Browse files
authored
Create copier-config.yaml
1 parent 58dfa8b commit a562f48

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

copier-config.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
source_repo: mongodb/docs-code-examples
2+
source_branch: test
3+
4+
copy_configs:
5+
# Configuration for Go examples with pattern matching and transforms
6+
generated-usage-examples/go:
7+
pattern_config:
8+
type: glob
9+
include:
10+
- "generated-usage-examples/go/**/*"
11+
transforms:
12+
- from: "generated-usage-examples/go/atlas-sdk-go/project-copy/${nameWithoutExt}.${ext}"
13+
to: "code-samples/${dir}/${nameWithoutExt}.${ext}"
14+
targets:
15+
- repo: mongodb/atlas-architecture-cli
16+
branch: v2
17+
target_path: examples/
18+
commit_strategy:
19+
type: pr
20+
auto_merge: false
21+
pr_title: "REVIEW REQUIRED: Critical examples updated"
22+
23+
# Configuration for all generated usage examples (simple copy)
24+
generated-usage-examples:
25+
targets:
26+
- repo: mongodb/atlas-architecture-cli
27+
branch: v2
28+
target_path: examples-v2/
29+
30+
default_commit_strategy:
31+
type: direct
32+
commit_message: "Automated update from source repo"
33+
34+
default_committer:
35+
name: "Examples Copier Bot"
36+
37+
38+
recursive_copy: true
39+
dry_run: false

0 commit comments

Comments
 (0)