Skip to content

Commit 6b1f448

Browse files
authored
Update copier-config.yaml
1 parent 1734440 commit 6b1f448

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

copier-config.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,36 @@ source_repo: "mongodb/docs-code-examples"
22
source_branch: "main"
33

44
copy_rules:
5-
- name: "all-generated-examples"
6-
source_pattern:
7-
type: "glob"
8-
pattern: "generated-usage-examples/**/*"
9-
targets:
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.
5+
# - name: "all-generated-examples"
6+
# source_pattern:
7+
# type: "glob"
8+
# pattern: "generated-usage-examples/**/*"
9+
# targets:
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.
1818

19-
Source PR: #${pr_number}
20-
Commit: ${commit_sha}
19+
# Source PR: #${pr_number}
20+
# Commit: ${commit_sha}
2121

22-
Files updated:
23-
- See commits for details
24-
commit_message: "Update code examples from PR #${pr_number}"
22+
# Files updated:
23+
# - See commits for details
24+
# commit_message: "Update code examples from PR #${pr_number}"
2525
- name: "test-recursive-copy-commit"
2626
source_pattern:
2727
type: "prefix"
2828
# Copies everything from test/ directory (including subdirectories)
2929
pattern: "test/"
3030
targets:
31-
# Target: 10gen/docs-mongodb-internal repository
31+
# Target: 10gen/docs-mongodb-internal repository (testing cross-org copying)
3232
- repo: "10gen/docs-mongodb-internal"
33-
branch: "cab-copier-test"
34-
# Keep the same structure: test/ -> code-example-tests/test/
33+
branch: "cab-copier-test" # Testing with a non-main branch in different org
34+
# Keep the same structure: test/ -> code-example-tests/commit/test/
3535
path_transform: "code-example-tests/commit/${path}"
3636
commit_strategy:
3737
# Using direct commit for faster testing
@@ -45,9 +45,9 @@ copy_rules:
4545
# Copies everything from test/ directory (including subdirectories)
4646
pattern: "test/"
4747
targets:
48-
# Target: 10gen/docs-mongodb-internal repository
48+
# Target: 10gen/docs-mongodb-internal repository (testing cross-org copying)
4949
- repo: "10gen/docs-mongodb-internal"
50-
branch: "cab-copier-test"
50+
branch: "main" # Testing with a main branch in different org
5151
# Keep the same structure: test/ -> code-example-tests/test/
5252
path_transform: "code-example-tests/${path}"
5353
commit_strategy:

0 commit comments

Comments
 (0)