Skip to content

Commit 7bb3f91

Browse files
authored
Merge branch 'master' into patch-1
2 parents c91a952 + 186af65 commit 7bb3f91

11 files changed

Lines changed: 1227 additions & 1011 deletions

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ settings.ts
3434
merge-requests.json
3535

3636
# ignore the lock
37-
package-lock.json
37+
#package-lock.json
3838

3939

4040
# Created by https://www.gitignore.io/api/visualstudiocode

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
"trailingComma": "es5",
33
"tabWidth": 2,
44
"semi": true,
5-
"singleQuote": true
5+
"singleQuote": true,
6+
"arrowParens": "avoid"
67
}

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ Go to [Settings / Access Tokens](https://gitlab.com/profile/personal_access_toke
5656

5757
Leave it null for the first run of the script. Then the script will show you which projects there are. Can be either string or number.
5858

59+
#### gitlab.sessionCookie
60+
61+
GitLab's API [does not allow downloading of attachments](https://gitlab.com/gitlab-org/gitlab/-/issues/24155) and only images can be downloaded using HTTP. To work around this limitation and enable binary attachments to be migrated one can use the session cookie set in the browser after logging in to the gitlab instance. The cookie is named `_gitlab_session`.
62+
5963
### github
6064

6165
#### github.baseUrl
@@ -70,6 +74,10 @@ Under which organisation or user will the new project be hosted
7074

7175
Go to [Settings / Developer settings / Personal access tokens](https://github.com/settings/tokens). Generate a new token with `repo` scope and copy that into the `settings.ts`
7276

77+
#### github.token_owner
78+
79+
Set to the user name of the user whose token is used (see above). This is required to determine whether the user running the migration is also the creator of comments and issues. If this is the case and `useIssueCreationAPI` is true (see below), the extra line specifying who created a comment or issue will not be added.
80+
7381
#### github.repo
7482

7583
What is the name of the new repo
@@ -124,6 +132,10 @@ If this is set to true (default) then the migration process will transfer merge
124132

125133
As default it is set to false. Doesn't fire the requests to github api and only does the work on the gitlab side to test for wonky cases before using up api-calls
126134

135+
### useIssueImportAPI
136+
137+
Set to true (default) to enable using the [GitHub preview API for importing issues](https://gist.github.com/jonmagic/5282384165e0f86ef105). This allows setting the date for issues and comments instead of inserting an additional line in the body.
138+
127139
### usePlaceholderIssuesForMissingIssues
128140

129141
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.

0 commit comments

Comments
 (0)