|
| 1 | +# YAML configuration for the DevDocs GitHub Code Example Copier |
| 2 | +# See documentation at https://github.com/mongodb/code-example-tooling/tree/main/examples-copier/docs |
| 3 | + |
| 4 | +# Global defaults (apply to all workflows unless overridden) |
| 5 | +defaults: |
| 6 | + commit_strategy: |
| 7 | + type: "pull_request" |
| 8 | + auto_merge: false |
| 9 | + deprecation_check: |
| 10 | + enabled: true |
| 11 | + file: "deprecated_examples.json" |
| 12 | + exclude: |
| 13 | + - "**/.env" |
| 14 | + - "**/.env.*" |
| 15 | + - "**/node_modules/**" |
| 16 | + - "**/__pycache__/**" |
| 17 | + |
| 18 | +# ============================================================================ |
| 19 | +# WORKFLOWS |
| 20 | +# ============================================================================ |
| 21 | +# Each workflow defines: |
| 22 | +# - source: where files come from (repo + branch) |
| 23 | +# - destination: where files go to (repo + branch - automatically batched into PRs) |
| 24 | +# - transformations: how to copy/move files |
| 25 | +# ============================================================================ |
| 26 | + |
| 27 | +workflows: |
| 28 | + # ========================================================================== |
| 29 | + # MongoDB Org: docs-sample-apps → sample app repos |
| 30 | + # ========================================================================== |
| 31 | + |
| 32 | + - name: "mflix-java" |
| 33 | + source: |
| 34 | + repo: "mongodb/docs-sample-apps" |
| 35 | + branch: "main" |
| 36 | + destination: |
| 37 | + repo: "mongodb/sample-app-java-mflix" |
| 38 | + branch: "main" |
| 39 | + transformations: |
| 40 | + - move: { from: "mflix/client", to: "client" } |
| 41 | + - move: { from: "mflix/server/java-spring", to: "server" } |
| 42 | + - copy: { from: "mflix/README-JAVA-SPRING.md", to: "README.md" } |
| 43 | + - copy: { from: "mflix/.gitignore-java", to: ".gitignore" } |
| 44 | + commit_strategy: |
| 45 | + type: "pull_request" |
| 46 | + pr_title: "Update MFlix client and Java server from docs-sample-apps" |
| 47 | + use_pr_template: true |
| 48 | + pr_body: | |
| 49 | + Automated update of MFlix Next.js client and Java Spring Boot server |
| 50 | +
|
| 51 | + Source: ${source_repo} |
| 52 | + PR: #${pr_number} |
| 53 | + Commit: ${commit_sha} |
| 54 | + auto_merge: false |
| 55 | + |
| 56 | + - name: "mflix-nodejs" |
| 57 | + source: |
| 58 | + repo: "mongodb/docs-sample-apps" |
| 59 | + branch: "main" |
| 60 | + destination: |
| 61 | + repo: "mongodb/sample-app-nodejs-mflix" |
| 62 | + branch: "main" |
| 63 | + transformations: |
| 64 | + - move: { from: "mflix/client", to: "client" } |
| 65 | + - move: { from: "mflix/server/js-express", to: "server" } |
| 66 | + - copy: { from: "mflix/README-JAVASCRIPT-EXPRESS.md", to: "README.md" } |
| 67 | + - copy: { from: "mflix/.gitignore-js", to: ".gitignore" } |
| 68 | + commit_strategy: |
| 69 | + type: "pull_request" |
| 70 | + pr_title: "Update MFlix client and Express server from docs-sample-apps" |
| 71 | + use_pr_template: true |
| 72 | + pr_body: | |
| 73 | + Automated update of MFlix Next.js client and Express.js server |
| 74 | +
|
| 75 | + Source: ${source_repo} |
| 76 | + PR: #${pr_number} |
| 77 | + Commit: ${commit_sha} |
| 78 | + auto_merge: false |
| 79 | + exclude: |
| 80 | + - "\\.gitignore$" |
| 81 | + - "README.md$" |
| 82 | + |
| 83 | + - name: "mflix-python" |
| 84 | + source: |
| 85 | + repo: "mongodb/docs-sample-apps" |
| 86 | + branch: "main" |
| 87 | + destination: |
| 88 | + repo: "mongodb/sample-app-python-mflix" |
| 89 | + branch: "main" |
| 90 | + transformations: |
| 91 | + - move: { from: "mflix/client", to: "client" } |
| 92 | + - move: { from: "mflix/server/python-fastapi", to: "server" } |
| 93 | + - copy: { from: "mflix/README-PYTHON-FASTAPI.md", to: "README.md" } |
| 94 | + - copy: { from: "mflix/.gitignore-python", to: ".gitignore" } |
| 95 | + commit_strategy: |
| 96 | + type: "pull_request" |
| 97 | + pr_title: "Update MFlix client and Python server from docs-sample-apps" |
| 98 | + use_pr_template: true |
| 99 | + pr_body: | |
| 100 | + Automated update of MFlix Next.js client and Python FastAPI server |
| 101 | +
|
| 102 | + Source: ${source_repo} |
| 103 | + PR: #${pr_number} |
| 104 | + Commit: ${commit_sha} |
| 105 | + auto_merge: false |
| 106 | + exclude: |
| 107 | + - "\\.gitignore$" |
| 108 | + - "README.md$" |
| 109 | + |
| 110 | + # ========================================================================== |
| 111 | + # 10gen Org: Atlas SDK Go examples → Artifact repo |
| 112 | + # ========================================================================== |
| 113 | + |
| 114 | + - name: "atlas-sdk-go-project-examples" |
| 115 | + source: |
| 116 | + repo: "10gen/docs-mongodb-internal" |
| 117 | + branch: "main" |
| 118 | + destination: |
| 119 | + repo: "mongodb/atlas-architecture-go-sdk" |
| 120 | + branch: "main" |
| 121 | + transformations: |
| 122 | + - glob: |
| 123 | + pattern: "content/code-examples/tested/go/atlas-sdk/project-copy/**/*" |
| 124 | + transform: "${relative_path}" |
| 125 | + commit_strategy: |
| 126 | + type: "pull_request" |
| 127 | + pr_title: "Update Atlas SDK Go examples from ${source_repo} PR ${pr_number}" |
| 128 | + pr_body: | |
| 129 | + Automated update of Atlas SDK Go project examples |
| 130 | +
|
| 131 | + **Source Details:** |
| 132 | + - Repository: ${source_repo} |
| 133 | + - Branch: ${source_branch} |
| 134 | + - Source PR: #${pr_number} |
| 135 | + - Commit: ${commit_sha} |
| 136 | +
|
| 137 | + **Changes:** |
| 138 | + - Files updated: ${file_count} |
| 139 | + auto_merge: false |
| 140 | + |
| 141 | + # ========================================================================== |
| 142 | + # TEST: cbullinger Org: aggregation-tasks → sample app repos |
| 143 | + # ========================================================================== |
| 144 | + |
| 145 | + - name: "test-mflix-java" |
| 146 | + source: |
| 147 | + repo: "cbullinger/aggregation-tasks" |
| 148 | + branch: "main" |
| 149 | + destination: |
| 150 | + repo: "cbullinger/sample-app-java-mflix" |
| 151 | + branch: "main" |
| 152 | + transformations: |
| 153 | + - move: { from: "mflix/client", to: "client" } |
| 154 | + - move: { from: "mflix/server/java-spring", to: "server" } |
| 155 | + - copy: { from: "mflix/README-JAVA-SPRING.md", to: "README.md" } |
| 156 | + - copy: { from: "mflix/.gitignore-java", to: ".gitignore" } |
| 157 | + commit_strategy: |
| 158 | + type: "pull_request" |
| 159 | + pr_title: "Update MFlix client and Java server from docs-sample-apps" |
| 160 | + use_pr_template: true |
| 161 | + pr_body: | |
| 162 | + Automated update of MFlix Next.js client and Java Spring Boot server |
| 163 | +
|
| 164 | + Source: ${source_repo} |
| 165 | + PR: #${pr_number} |
| 166 | + Commit: ${commit_sha} |
| 167 | + auto_merge: false |
| 168 | + exclude: |
| 169 | + - "\\.gitignore$" |
| 170 | + - "README.md$" |
| 171 | + |
| 172 | + - name: "test-mflix-nodejs" |
| 173 | + source: |
| 174 | + repo: "cbullinger/aggregation-tasks" |
| 175 | + branch: "main" |
| 176 | + destination: |
| 177 | + repo: "cbullinger/sample-app-nodejs-mflix" |
| 178 | + branch: "main" |
| 179 | + transformations: |
| 180 | + - move: { from: "mflix/client", to: "client" } |
| 181 | + - move: { from: "mflix/server/js-express", to: "server" } |
| 182 | + - copy: { from: "mflix/README-JAVASCRIPT-EXPRESS.md", to: "README.md" } |
| 183 | + - copy: { from: "mflix/.gitignore-js", to: ".gitignore" } |
| 184 | + commit_strategy: |
| 185 | + type: "pull_request" |
| 186 | + pr_title: "Update MFlix client and Express server from docs-sample-apps" |
| 187 | + use_pr_template: true |
| 188 | + pr_body: | |
| 189 | + Automated update of MFlix Next.js client and Express.js server |
| 190 | +
|
| 191 | + Source: ${source_repo} |
| 192 | + PR: #${pr_number} |
| 193 | + Commit: ${commit_sha} |
| 194 | + auto_merge: false |
| 195 | + exclude: |
| 196 | + - "\\.gitignore$" |
| 197 | + - "README.md$" |
| 198 | + |
| 199 | + - name: "test-mflix-python" |
| 200 | + source: |
| 201 | + repo: "cbullinger/aggregation-tasks" |
| 202 | + branch: "main" |
| 203 | + destination: |
| 204 | + repo: "cbullinger/sample-app-python-mflix" |
| 205 | + branch: "main" |
| 206 | + transformations: |
| 207 | + - move: { from: "mflix/client", to: "client" } |
| 208 | + - move: { from: "mflix/server/python-fastapi", to: "server" } |
| 209 | + - copy: { from: "mflix/README-PYTHON-FASTAPI.md", to: "README.md" } |
| 210 | + - copy: { from: "mflix/.gitignore-python", to: ".gitignore" } |
| 211 | + commit_strategy: |
| 212 | + type: "pull_request" |
| 213 | + pr_title: "Update MFlix client and Python server from docs-sample-apps" |
| 214 | + use_pr_template: true |
| 215 | + pr_body: | |
| 216 | + Automated update of MFlix Next.js client and Python FastAPI server |
| 217 | +
|
| 218 | + Source: ${source_repo} |
| 219 | + PR: #${pr_number} |
| 220 | + Commit: ${commit_sha} |
| 221 | + auto_merge: false |
| 222 | + exclude: |
| 223 | + - "\\.gitignore$" |
| 224 | + - "README.md$" |
0 commit comments