-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathconfig.yaml
More file actions
110 lines (97 loc) · 4.36 KB
/
config.yaml
File metadata and controls
110 lines (97 loc) · 4.36 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
# Docs Copier Workflow Configuration
# Referenced from main config file in https://github.com/mongodb/code-example-tooling/blob/main/.copier/workflows/main.yaml
# ============================================================================
# LOCAL DEFAULTS
# ============================================================================
# These defaults apply to all workflows in this file
# They override main config defaults but can be overridden by individual workflows
defaults:
commit_strategy:
type: "pull_request"
auto_merge: false
use_pr_template: true
commit_message: "Automated update from ${source_repo} PR #${pr_number} (${file_count} files)"
deprecation_check:
enabled: true
file: "deprecated_examples.json"
exclude:
- "**/.env"
- "**/node_modules/**"
- "**/.DS_Store"
- "\\.gitignore$"
- "README.md$"
# ============================================================================
# WORKFLOW CONFIGURATION
# ============================================================================
# To add a workflow, create a DOCSP Jira ticket with the component set to `DevDocs`.
# See also [README.md](https://github.com/mongodb/docs-sample-apps/blob/main/.copier/README.md)
workflows:
# --------------------------------------------------------------------------
# MFlix Java Application
# --------------------------------------------------------------------------
- name: "mflix-java"
destination:
repo: "mongodb/sample-app-java-mflix"
branch: "main"
transformations:
- move: { from: "mflix/client", to: "client" }
- move: { from: "mflix/server/java-spring", to: "server" }
- copy: { from: "mflix/README-JAVA-SPRING.md", to: "README.md" }
- copy: { from: "mflix/check-requirements-java.sh", to: "check-requirements.sh" }
- copy: { from: "mflix/.gitignore-java", to: ".gitignore" }
commit_strategy:
pr_title: "Update MFlix application from docs-sample-apps"
pr_body: |
Automated update of MFlix Java application
**Source:** ${source_repo} (${source_branch})
**PR:** #${pr_number} | **Commit:** ${commit_sha}
**Changes:** ${file_count} files
exclude:
- "mflix/client/**/.gitignore"
- "mflix/server/java-spring/**/.gitignore"
# --------------------------------------------------------------------------
# MFlix Node.js Application
# --------------------------------------------------------------------------
- name: "mflix-nodejs"
destination:
repo: "mongodb/sample-app-nodejs-mflix"
branch: "main"
transformations:
- move: { from: "mflix/client", to: "client" }
- move: { from: "mflix/server/js-express", to: "server" }
- copy: { from: "mflix/README-NODE-EXPRESS.md", to: "README.md" }
- copy: { from: "mflix/check-requirements-js.sh", to: "check-requirements.sh" }
- copy: { from: "mflix/.gitignore-js", to: ".gitignore" }
commit_strategy:
pr_title: "Update MFlix application from docs-sample-apps"
pr_body: |
Automated update of MFlix Node.js application
**Source:** ${source_repo} (${source_branch})
**PR:** #${pr_number} | **Commit:** ${commit_sha}
**Changes:** ${file_count} files
exclude:
- "mflix/client/**/.gitignore"
- "mflix/server/js-express/**/.gitignore"
# --------------------------------------------------------------------------
# MFlix Python Application
# --------------------------------------------------------------------------
- name: "mflix-python"
destination:
repo: "mongodb/sample-app-python-mflix"
branch: "main"
transformations:
- move: { from: "mflix/client", to: "client" }
- move: { from: "mflix/server/python-fastapi", to: "server" }
- copy: { from: "mflix/README-PYTHON-FASTAPI.md", to: "README.md" }
- copy: { from: "mflix/check-requirements-python.sh", to: "check-requirements.sh" }
- copy: { from: "mflix/.gitignore-python", to: ".gitignore" }
commit_strategy:
pr_title: "Update MFlix application from docs-sample-apps"
pr_body: |
Automated update of MFlix Python application
**Source:** ${source_repo} (${source_branch})
**PR:** #${pr_number} | **Commit:** ${commit_sha}
**Changes:** ${file_count} files
exclude:
- "mflix/client/**/.gitignore"
- "mflix/server/python-fastapi/**/.gitignore"