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
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,11 @@ If this is set to true (default) then the migration process will automatically c
102
102
103
103
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.
104
104
105
+
#### useIssuesForAllMergeRequests
106
+
107
+
If this is set to true (default is false) then all merge requests will be migrated as GitHub issues (rather than pull requests). This can be
108
+
used to sidestep the problem where pull requests are rejected by GitHub if the feature branch no longer exists or has been merged.
109
+
105
110
#### skipMatchingComments
106
111
107
112
This is an array (empty per default) that may contain string values. Any note/comment in any issue, that contains one or more of those string values, will be skipped (meaining not migrated). Note that this is case insensitive, therefore the string value `foo` would also lead to skipping notes containing a (sub)string `FOO`.
`The '${pullRequest.target_branch}' branch exists on GitLab but has not been migrated to GitHub. Please migrate the branch before migrating pull request #${pullRequest.iid}.`
510
-
);
511
-
returnPromise.resolve({data: null});
512
-
}else{
513
-
console.error(
514
-
`Merge request ${pullRequest.iid} (target branch '${pullRequest.target_branch}' does not exist => cannot migrate pull request, creating an issue instead.`
515
-
);
516
-
canCreate=false;
502
+
if(canCreate){
503
+
// Check to see if the target branch exists in GitHub - if it does not exist, we cannot create a pull request
`The '${pullRequest.target_branch}' branch exists on GitLab but has not been migrated to GitHub. Please migrate the branch before migrating pull request #${pullRequest.iid}.`
516
+
);
517
+
returnPromise.resolve({data: null});
518
+
}else{
519
+
console.error(
520
+
`Merge request ${pullRequest.iid} (target branch '${pullRequest.target_branch}' does not exist => cannot migrate pull request, creating an issue instead.`
521
+
);
522
+
canCreate=false;
523
+
}
517
524
}
518
525
}
519
526
520
-
// Check to see if the source branch exists in GitHub - if it does not exist, we cannot create a pull request
`The '${pullRequest.source_branch}' branch exists on GitLab but has not been migrated to GitHub. Please migrate the branch before migrating pull request #${pullRequest.iid}.`
533
-
);
534
-
returnPromise.resolve({data: null});
535
-
}else{
536
-
console.error(
537
-
`Pull request #${pullRequest.iid} (source branch '${pullRequest.source_branch}' does not exist => cannot migrate pull request, creating an issue instead.`
538
-
);
539
-
canCreate=false;
527
+
if(canCreate){
528
+
// Check to see if the source branch exists in GitHub - if it does not exist, we cannot create a pull request
`The '${pullRequest.source_branch}' branch exists on GitLab but has not been migrated to GitHub. Please migrate the branch before migrating pull request #${pullRequest.iid}.`
541
+
);
542
+
returnPromise.resolve({data: null});
543
+
}else{
544
+
console.error(
545
+
`Pull request #${pullRequest.iid} (source branch '${pullRequest.source_branch}' does not exist => cannot migrate pull request, creating an issue instead.`
0 commit comments