Skip to content

Commit 4020020

Browse files
authored
Update copier-config.yaml
1 parent a562f48 commit 4020020

1 file changed

Lines changed: 22 additions & 37 deletions

File tree

copier-config.yaml

Lines changed: 22 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,24 @@
1-
source_repo: mongodb/docs-code-examples
2-
source_branch: test
1+
source_repo: "mongodb/docs-code-examples"
2+
source_branch: "main"
33

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}"
4+
copy_rules:
5+
- name: "all-generated-examples"
6+
source_pattern:
7+
type: "glob"
8+
pattern: "generated-usage-examples/**/*"
149
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-
email: "copier@example.com"
37-
38-
recursive_copy: true
39-
dry_run: false
10+
- repo: "mongodb/atlas-architecture-cli"
11+
branch: "main"
12+
path_transform: "${path}"
13+
commit_strategy:
14+
type: "pull_request"
15+
pr_title: "Update code examples from docs-code-examples PR #${pr_number}"
16+
pr_body: |
17+
Automated update of code examples from docs-code-examples.
18+
19+
Source PR: #${pr_number}
20+
Commit: ${commit_sha}
21+
22+
Files updated:
23+
- See commits for details
24+
commit_message: "Update code examples from PR #${pr_number}"

0 commit comments

Comments
 (0)