You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40Lines changed: 40 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,3 +72,43 @@ gitlab-sync \
72
72
--destination-token <destination_gitlab_token> \
73
73
--mirror-mapping /path/to/mirror.json
74
74
```
75
+
76
+
## JSON Mapping File
77
+
78
+
The JSON mapping file is used to define the projects and groups to be synchronized between the two GitLab instances. You also define the copy options for each project / group.
79
+
80
+
Allowed options are:
81
+
| Option | Description |
82
+
|--------|-------------|
83
+
|`destination_path`| The path to the project / group on the destination GitLab instance. |
84
+
|`ci_cd_catalog`| Whether to add the project to the CI/CD catalog. |
85
+
|`issues`| Whether to copy issues from the source project to the destination project. |
86
+
|`visibility`| The visibility level of the project on the destination GitLab instance. Can be `public`, `internal`, or `private`. |
87
+
|`mirror_trigger_builds`| Whether to trigger builds on the destination project when a push is made to the source project. |
88
+
89
+
Be aware that the destination path must be unique for each project / group. If you try to synchronize a project / group with the same destination path as an existing project / group, the synchronization will fail.
90
+
91
+
Also, the destination namespace must exist on the destination GitLab instance. If the namespace does not exist, the synchronization will fail.
0 commit comments