|
| 1 | +# Docs Copier Workflow Configuration |
| 2 | +# Referenced from main config file in https://github.com/mongodb/code-example-tooling/blob/main/.copier/workflows/main.yaml |
| 3 | + |
| 4 | +# ============================================================================ |
| 5 | +# LOCAL DEFAULTS |
| 6 | +# ============================================================================ |
| 7 | +# These defaults apply to all workflows in this file |
| 8 | +# They override main config defaults but can be overridden by individual workflows |
| 9 | + |
| 10 | + |
| 11 | +defaults: |
| 12 | + commit_strategy: |
| 13 | + type: "pull_request" |
| 14 | + auto_merge: false |
| 15 | + use_pr_template: true |
| 16 | + commit_message: "Automated update from ${source_repo} PR #${pr_number} (${file_count} files)" |
| 17 | + deprecation_check: |
| 18 | + enabled: true |
| 19 | + file: "deprecated_examples.json" |
| 20 | + exclude: |
| 21 | + - "**/.env" |
| 22 | + - "**/node_modules/**" |
| 23 | + - "**/.DS_Store" |
| 24 | + - "\\.gitignore$" |
| 25 | + - "README.md$" |
| 26 | + |
| 27 | +# ============================================================================ |
| 28 | +# WORKFLOW CONFIGURATION |
| 29 | +# ============================================================================ |
| 30 | +# To add a workflow, create a DOCSP Jira ticket with the component set to `DevDocs`. |
| 31 | +# See also [README.md](https://github.com/mongodb/docs-sample-apps/blob/main/.copier/README.md) |
| 32 | + |
| 33 | +workflows: |
| 34 | + |
| 35 | + # -------------------------------------------------------------------------- |
| 36 | + # MFlix Java Application |
| 37 | + # -------------------------------------------------------------------------- |
| 38 | + - name: "mflix-java" |
| 39 | + destination: |
| 40 | + repo: "mongodb/sample-app-java-mflix" |
| 41 | + branch: "main" |
| 42 | + transformations: |
| 43 | + - move: { from: "mflix/client", to: "client" } |
| 44 | + - move: { from: "mflix/server/java-spring", to: "server" } |
| 45 | + - copy: { from: "mflix/README-JAVA-SPRING.md", to: "README.md" } |
| 46 | + - copy: { from: "mflix/.gitignore-java", to: ".gitignore" } |
| 47 | + commit_strategy: |
| 48 | + pr_title: "Update MFlix application from docs-sample-apps" |
| 49 | + pr_body: | |
| 50 | + Automated update of MFlix Java application |
| 51 | +
|
| 52 | + **Source:** ${source_repo} (${source_branch}) |
| 53 | + **PR:** #${pr_number} | **Commit:** ${commit_sha} |
| 54 | + **Changes:** ${file_count} files |
| 55 | + exclude: |
| 56 | + - "mflix/client/**/.gitignore" |
| 57 | + - "mflix/server/java-spring/**/.gitignore" |
| 58 | + |
| 59 | + |
| 60 | + # -------------------------------------------------------------------------- |
| 61 | + # MFlix Node.js Application |
| 62 | + # -------------------------------------------------------------------------- |
| 63 | + - name: "mflix-nodejs" |
| 64 | + destination: |
| 65 | + repo: "mongodb/sample-app-nodejs-mflix" |
| 66 | + branch: "main" |
| 67 | + transformations: |
| 68 | + - move: { from: "mflix/client", to: "client" } |
| 69 | + - move: { from: "mflix/server/js-express", to: "server" } |
| 70 | + - copy: { from: "mflix/README-JAVASCRIPT-EXPRESS.md", to: "README.md" } |
| 71 | + - copy: { from: "mflix/.gitignore-js", to: ".gitignore" } |
| 72 | + commit_strategy: |
| 73 | + pr_title: "Update MFlix application from docs-sample-apps" |
| 74 | + pr_body: | |
| 75 | + Automated update of MFlix Node.js application |
| 76 | +
|
| 77 | + **Source:** ${source_repo} (${source_branch}) |
| 78 | + **PR:** #${pr_number} | **Commit:** ${commit_sha} |
| 79 | + **Changes:** ${file_count} files |
| 80 | + exclude: |
| 81 | + - "mflix/client/**/.gitignore" |
| 82 | + - "mflix/server/js-express/**/.gitignore" |
| 83 | + |
| 84 | + |
| 85 | + # -------------------------------------------------------------------------- |
| 86 | + # MFlix Python Application |
| 87 | + # -------------------------------------------------------------------------- |
| 88 | + - name: "mflix-python" |
| 89 | + destination: |
| 90 | + repo: "mongodb/sample-app-python-mflix" |
| 91 | + branch: "main" |
| 92 | + transformations: |
| 93 | + - move: { from: "mflix/client", to: "client" } |
| 94 | + - move: { from: "mflix/server/python-fastapi", to: "server" } |
| 95 | + - copy: { from: "mflix/README-PYTHON-FASTAPI.md", to: "README.md" } |
| 96 | + - copy: { from: "mflix/.gitignore-python", to: ".gitignore" } |
| 97 | + commit_strategy: |
| 98 | + pr_title: "Update MFlix application from docs-sample-apps" |
| 99 | + pr_body: | |
| 100 | + Automated update of MFlix Python application |
| 101 | +
|
| 102 | + **Source:** ${source_repo} (${source_branch}) |
| 103 | + **PR:** #${pr_number} | **Commit:** ${commit_sha} |
| 104 | + **Changes:** ${file_count} files |
| 105 | + exclude: |
| 106 | + - "mflix/client/**/.gitignore" |
| 107 | + - "mflix/server/python-fastapi/**/.gitignore" |
0 commit comments