-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathcopier-config.yaml
More file actions
61 lines (58 loc) · 2.53 KB
/
copier-config.yaml
File metadata and controls
61 lines (58 loc) · 2.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
source_repo: "mongodb/docs-code-examples"
source_branch: "main"
copy_rules:
# - name: "all-generated-examples"
# source_pattern:
# type: "glob"
# pattern: "generated-usage-examples/**/*"
# targets:
# - repo: "mongodb/atlas-architecture-cli"
# branch: "main"
# path_transform: "${path}"
# commit_strategy:
# type: "pull_request"
# pr_title: "Update code examples from docs-code-examples PR #${pr_number}"
# pr_body: |
# Automated update of code examples from docs-code-examples.
# Source PR: #${pr_number}
# Commit: ${commit_sha}
# Files updated:
# - See commits for details
# commit_message: "Update code examples from PR #${pr_number}"
- name: "test-recursive-copy-commit"
source_pattern:
type: "prefix"
# Copies everything from test/ directory (including subdirectories)
pattern: "test/"
targets:
# Target: 10gen/docs-mongodb-internal repository (testing cross-org copying)
- repo: "10gen/docs-mongodb-internal"
branch: "cab-copier-test" # Testing with a non-main branch in different org
# Keep the same structure: test/ -> code-example-tests/commit/test/
path_transform: "code-example-tests/commit/${path}"
commit_strategy:
# Using direct commit for faster testing
type: "direct"
commit_message: "Test: Recursive copy from ${source_repo} PR #${pr_number}"
deprecation_check:
enabled: false # Disabled for testing
- name: "test-recursive-copy-pr"
source_pattern:
type: "prefix"
# Copies everything from test/ directory (including subdirectories)
pattern: "test/"
targets:
# Target: 10gen/docs-mongodb-internal repository (testing cross-org copying)
- repo: "10gen/docs-mongodb-internal"
branch: "main" # Testing with a main branch in different org
# Keep the same structure: test/ -> code-example-tests/test/
path_transform: "code-example-tests/${path}"
commit_strategy:
# Using direct commit for faster testing
type: "pull_request"
commit_message: "Test: Recursive copy from ${source_repo} PR #${pr_number}"
pr_title: "Test: Recursive copy from ${source_repo} PR #${pr_number}"
pr_body: "Automated update of code examples from ${source_repo} PR #${pr_number}"
auto_merge: false
deprecation_check:
enabled: true # Disabled for testing