@@ -78,7 +78,7 @@ async function handleEventGracefully(event, issue, err) {
78
78
if ( event . event === 'issue.closed' && event . paymentSuccessful === false ) {
79
79
comment = `Payment failed: ${ comment } ` ;
80
80
}
81
- if ( event . retryCount <= 1 ) {
81
+ if ( event . retryCount === config . RETRY_COUNT ) {
82
82
// notify error in git host
83
83
if ( event . provider === 'github' ) {
84
84
await gitHubService . createComment ( event . copilot , event . data . repository . name , issue . number , comment ) ;
@@ -506,13 +506,14 @@ async function handleIssueCreate(event, issue) {
506
506
} else {
507
507
await gitlabService . createComment ( event . copilot , event . data . repository . id , issue . number , comment ) ;
508
508
}
509
-
510
- // if assignee is added during issue create then assign as well
511
- if ( event . data . issue . assignees && event . data . issue . assignees . length > 0 && event . data . issue . assignees [ 0 ] . id ) {
512
- event . data . assignee = {
513
- id : event . data . issue . assignees [ 0 ] . id
514
- } ;
515
- await handleIssueAssignment ( event , issue ) ;
509
+ if ( event . provider === 'gitlab' ) {
510
+ // if assignee is added during issue create then assign as well
511
+ if ( event . data . issue . assignees && event . data . issue . assignees . length > 0 && event . data . issue . assignees [ 0 ] . id ) {
512
+ event . data . assignee = {
513
+ id : event . data . issue . assignees [ 0 ] . id
514
+ } ;
515
+ await handleIssueAssignment ( event , issue ) ;
516
+ }
516
517
}
517
518
518
519
logger . debug ( `new challenge created with id ${ issue . challengeId } for issue ${ issue . number } ` ) ;
0 commit comments