@@ -226,6 +226,7 @@ jobs:
226226 for ( const issue of issues.data )
227227 {
228228
229+ const author = `${ issue.user.login }`;
229230 let date_UpdateDate = new Date( `${ issue.updated_at }` ?? `${ issue.created_at }` ); // Tue Mar 26 2024 16:40:41 GMT+0000 (Coordinated Universal Time)
230231 date_UpdateDate.toISOString( ) // Tue Mar 26 2024 16:40:41 GMT+0000 (Coordinated Universal Time) (string)
231232
@@ -317,8 +318,11 @@ jobs:
317318
318319 add_labels.push( `${ bug_lbl }` );
319320
321+ if ( author === `${{ env.BOT_NAME_DEPENDABOT }}` )
322+ core.info( `Skipping : Detected ${ author }` )
323+
320324 // Rename title to contain Bug :
321- if ( !bug_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
325+ if ( author !== `${{ env.BOT_NAME_DEPENDABOT }}` && !bug_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
322326 {
323327 const title = issue.title;
324328 let title_new = title.replace( /^\s?bug\s*(.*?)\b/gi, '' );
@@ -347,7 +351,7 @@ jobs:
347351 https://regex101.com/r/fR1Hm6/1
348352 */
349353
350- const feat_findWordList = /^(?:(?:request|include|see)\s*(?:an?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))|(?:can\s*we\s*get\s*(?:the|a)\s*(?:ability|feature))|(?:💡 Feature:)$/igm;
354+ const feat_findWordList = /^(?:(?:request|include|see)\s*(?:an?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))|(?:can\s*we\s*get\s*(?:the|a)\s*(?:ability|feature))|(?:💡 Feature:)$/igm;
351355 const feat_bFoundMatchTitle = Boolean( feat_findWordList.test( iss_title ) );
352356 const feat_bFoundMatchBody = Boolean( feat_findWordList.test( iss_body ) );
353357
@@ -371,8 +375,11 @@ jobs:
371375
372376 add_labels.push( `${ feat_lbl }` );
373377
378+ if ( author === `${{ env.BOT_NAME_DEPENDABOT }}` )
379+ core.info( `Skipping : Detected ${ author }` )
380+
374381 // Rename title to contain Feature :
375- if ( !feat_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
382+ if ( author !== `${{ env.BOT_NAME_DEPENDABOT }}` && !feat_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
376383 {
377384 const title = issue.title;
378385 let title_new = title.replace( /^\s?feature\s*(.*?)\b/gi, '' );
@@ -426,8 +433,11 @@ jobs:
426433
427434 add_labels.push( `${ urgn_lbl }` );
428435
436+ if ( author === `${{ env.BOT_NAME_DEPENDABOT }}` )
437+ core.info( `Skipping : Detected ${ author }` )
438+
429439 // Rename title to contain Urgent :
430- if ( !urgn_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
440+ if ( author !== `${{ env.BOT_NAME_DEPENDABOT }}` && !urgn_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
431441 {
432442 const title = issue.title;
433443 let title_new = title.replace( /^\s?emergency\s*(.*?)\b/gi, '' );
@@ -483,8 +493,11 @@ jobs:
483493
484494 add_labels.push( `${ road_lbl }` );
485495
496+ if ( author === `${{ env.BOT_NAME_DEPENDABOT }}` )
497+ core.info( `Skipping : Detected ${ author }` )
498+
486499 // Rename title to contain Roadmap :
487- if ( !road_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
500+ if ( author !== `${{ env.BOT_NAME_DEPENDABOT }}` && !road_bFoundPRTitle && !iss_title_lc.startsWith( bug_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( feat_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( urgn_tag.toLowerCase( ) ) && !iss_title_lc.startsWith( road_tag.toLowerCase( ) ) )
488501 {
489502 const title = issue.title;
490503 let title_new = title.replace( /^\s?emergency\s*(.*?)\b/gi, '' );
0 commit comments