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
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ After doing this, the autolinking of issues, commits, and branches will work. Se
34
34
35
35
## Usage
36
36
37
-
The user must be a member of the project you want to copy or else you won't see it in the first step.
37
+
The user must be a member of the project you want to copy. This user must be the one
38
38
39
39
1.`cp sample_settings.ts settings.ts`
40
40
1. edit settings.ts
@@ -64,7 +64,11 @@ GitLab's API [does not allow downloading of attachments](https://gitlab.com/gitl
64
64
65
65
#### github.baseUrl
66
66
67
-
Where is the github instance hosted? Default is the official `api.github.com` domain
67
+
Where is the github instance hosted? The default is the official `github.com` domain
68
+
69
+
#### github.apiUrl
70
+
71
+
Point this to the api. The default is `api.github.com`.
68
72
69
73
#### github.owner
70
74
@@ -150,11 +154,15 @@ Set to true (default) to enable using the [GitHub preview API for importing issu
150
154
151
155
### usePlaceholderIssuesForMissingIssues
152
156
153
-
If this is set to true (default) then the migration process will automatically create empty dummy issues for every 'missing' GitLab issue (if you deleted an GitLab issue for example). Those issues will be closed on Github and they ensure, that the issue ids stay the same on both, GitLab and Github.
157
+
If this is set to true (default) then the migration process will automatically create empty dummy issues for every 'missing' GitLab issue (if you deleted a GitLab issue for example). Those issues will be closed on Github and they ensure that the issue ids stay the same on both GitLab and Github.
158
+
159
+
#### usePlaceholderMilestonesForMissingMilestones
154
160
155
-
### useReplacementIssuesForCreationFails
161
+
If this is set to true (default) then the migration process will automatically create empty dummy milestones for every 'missing' GitLab milestone (if you deleted a GitLab milestone for example). Those milestones will be closed on Github and they ensure that the milestone ids stay the same on both GitLab and Github.
156
162
157
-
If this is set to true (default) then the migration process will automatically create so called "replacement-issues" for every issue where the migration fails. This replacement issue will be exactly the same, but the original description will be lost. In the future, the description of the replacement issue will also contain a link to the original issue on GitLab. This way users, who still have access to the GitLab repository can still view its content. However, this is still an open task. (TODO)
163
+
#### useReplacementIssuesForCreationFails
164
+
165
+
If this is set to true (default) then the migration process will automatically create so called "replacement-issues" for every issue where the migration fails. This replacement issue will be exactly the same, but the original description will be lost. In the future, the description of the replacement issue will also contain a link to the original issue on GitLab. This way, users who still have access to the GitLab repository can still view its content. However, this is still an open task. (TODO)
158
166
159
167
It would of course be better to find the cause for migration fails, so that no replacement issues would be needed. Finding the cause together with a retry-mechanism would be optimal, and will maybe come in the future - currently the replacement-issue-mechanism helps to keep things in order.
160
168
@@ -184,9 +192,17 @@ Suggested values:
184
192
185
193
Object consisting of `logfile` and `log`. If `log` is set to true, then the merge requests are logged in the specified file and not migrated. Conversely, if `log` is set to false, then the merge requests are migrated to GitHub and not logged. If the source or target branches linked to the merge request have been deleted, the merge request cannot be migrated to a pull request; instead, an issue with a custom "gitlab merge request" tag is created with the full comment history of the merge request.
186
194
195
+
### usermap
196
+
197
+
Maps gitlab user names to github users. This is used to properly set assignees in issues and PRs and to translate mentions in issues.
198
+
199
+
### projectmap
200
+
201
+
This is useful when migrating multiple projects if they are renamed at destination. Provide a map from gitlab names to github names so that any cross-project references (e.g. issues) are not lost.
202
+
187
203
## Import limit
188
204
189
-
Because Github has a limit of 5000 Api requests per hour one has to watch out that one doesn't get over this limit. I transferred one of my project with it ~ 300 issues with ~ 200 notes. This totals to some 500 objects excluding commits which are imported through githubs importer. I never got under 3800 remaining requests (while testing it two times in one hour).
205
+
Because Github has a limit of 5000 Api requests per hour one has to be careful not to go over this limit. I transferred one of my project with it ~ 300 issues with ~ 200 notes. This totals to some 500 objects excluding commits which are imported through githubs importer. I never got under 3800 remaining requests (while testing it two times in one hour).
190
206
191
207
So the rule of thumb should be that one can import a repo with ~ 2500 issues without a problem.
192
208
@@ -197,7 +213,9 @@ So the rule of thumb should be that one can import a repo with ~ 2500 issues wit
197
213
See section 'useReplacementIssuesForCreationFails' above for more infos!
198
214
One reason seems to be some error with `Octokit` (error message snippet: https://pastebin.com/3VNUNYLh)
199
215
200
-
### Milestone refs and issue refs
216
+
### Milestone, MR and issue references
217
+
218
+
This is WIP
201
219
202
220
the milestone refs and issue refs do not seem to be rewritten properly at the
203
221
moment. specifically, milestones show up like `%4` in comments
@@ -214,6 +232,6 @@ A throttling mechanism could maybe help to avoid api rate limit errors.
214
232
In some scenarios the ability to migrate is probably more important than the total
215
233
duration of the migration process. Some users may even be willing to accept a very long duration (> 1 day if necessary?), if they can get the migration done at all, in return.
216
234
217
-
### Make request run in parallel
235
+
### Make requests run in parallel
218
236
219
-
Some requests could be run in parallel, to shorten the total duration. Currently all GitLab- and Github-Api-Requests are being run sequentially.
237
+
Some requests could be run in parallel, to shorten the total duration. Currently all GitLab- and Github-Api-Requests are run sequentially.
0 commit comments