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
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,8 @@ Written in Go, this is a cross-platform CLI utility that accepts the following r
47
47
continue migrating until canceled
48
48
-max-concurrency int
49
49
how many projects to migrate in parallel (default 4)
50
+
-merge-requests-max-age string
51
+
optional maximum age in days of merge requests to migrate
50
52
-migrate-pull-requests
51
53
whether pull requests should be migrated
52
54
-projects-csv string
@@ -59,6 +61,8 @@ Written in Go, this is a cross-platform CLI utility that accepts the following r
59
61
report on primitives to be migrated instead of beginning migration
60
62
-skip-invalid-merge-requests
61
63
when true, will log and skip invalid merge requests instead of raising an error
64
+
-version
65
+
output version information
62
66
```
63
67
64
68
## Authentication
@@ -98,6 +102,8 @@ This tool also migrates merged/closed merge requests from your GitLab projects.
98
102
99
103
If you have a large number of merge requests, or projects with a long history spanning many GitLab upgrades, you may wish to specify the `-skip-invalid-merge-requests` argument. This will cause the tool to emit INFO messages for merge requests that it considers invalid, such as those that are still marked as Open but have no source/head branch, or where there is no diff for a closed merge request. Without this option, an error will be logged instead.
100
104
105
+
Similarly, you can specify a maximum age for merge requests to migrate with the `-merge-requests-max-age` argument, which is useful for 'topping off' projects that are already migrated.
106
+
101
107
_Example migrated pull request (open)_
102
108
103
109

flag.BoolVar(&loop, "loop", false, "continue migrating until canceled")
@@ -116,6 +106,7 @@ func main() {
116
106
flag.StringVar(&gitlabDomain, "gitlab-domain", defaultGitlabDomain, "specifies the GitLab domain to use")
117
107
flag.StringVar(&gitlabProject, "gitlab-project", "", "the GitLab project to migrate")
118
108
flag.StringVar(&projectsCsvPath, "projects-csv", "", "specifies the path to a CSV file describing projects to migrate (incompatible with -gitlab-project and -github-repo)")
109
+
flag.StringVar(&mergeRequestsAgeRaw, "merge-requests-max-age", "", "optional maximum age in days of merge requests to migrate")
119
110
flag.StringVar(&renameTrunkBranch, "rename-trunk-branch", "", "specifies the new trunk branch name (incompatible with -rename-master-to-main)")
120
111
121
112
flag.IntVar(&maxConcurrency, "max-concurrency", 4, "how many projects to migrate in parallel")
0 commit comments