File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -566,6 +566,10 @@ export class GithubHelper {
566
566
issue : IssueImport ,
567
567
comments : CommentImport [ ]
568
568
) : Promise < number | null > {
569
+ // see: https://github.com/orgs/community/discussions/27190
570
+ if ( issue . body . length > 65536 ) {
571
+ throw `${ issue . title } has a body longer than 65536 characters. Please shorten it.` ;
572
+ }
569
573
// create the GitHub issue from the GitLab issue
570
574
let pending = await this . githubApi . request (
571
575
`POST /repos/${ settings . github . owner } /${ settings . github . repo } /import/issues` ,
Original file line number Diff line number Diff line change @@ -589,6 +589,8 @@ async function transferMergeRequests() {
589
589
'Could not create pull request: !' + mr . iid + ' - ' + mr . title
590
590
) ;
591
591
console . error ( err ) ;
592
+ // Stop execution to be able to correct issue
593
+ process . exit ( 1 ) ;
592
594
}
593
595
} else {
594
596
if ( githubRequest ) {
You can’t perform that action at this time.
0 commit comments