Skip to content

Commit 629e4a0

Browse files
committed
ci: update workflow
1 parent d58937f commit 629e4a0

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/issues-new-assign.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ jobs:
178178
179179
let iss_title = `${{ steps.label_issues_initialize.outputs.issue_title }}` || `${ context.payload.issue.title }`;
180180
let iss_body = `${ context.payload.issue.body }`;
181+
let iss_author = `${ context.payload.issue.user.login }`;
181182
182183
const iss_title_lc = iss_title.toLowerCase( );
183184
@@ -252,10 +253,13 @@ jobs:
252253
console.log( `Adding Tag ....................... ${ bug_lbl }` )
253254
console.log( "\n" )
254255
256+
if ( iss_author === `${{ env.BOT_NAME_DEPENDABOT }}` )
257+
core.info( `Skipping: Detected ${ iss_author }` )
258+
255259
// Rename title to contain Bug:
256260
// Make sure issue / pr title doesnt already contain a beginning title tag
257261
258-
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( ) ) )
262+
if ( iss_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( ) ) )
259263
{
260264
console.log( "Renaming Title" )
261265
console.log( `Old Title: .................. ${ iss_title }` )
@@ -377,10 +381,13 @@ jobs:
377381
console.log( `Adding Tag ....................... ${ feat_lbl }` )
378382
console.log( "\n" )
379383
384+
if ( iss_author === `${{ env.BOT_NAME_DEPENDABOT }}` )
385+
core.info( `Skipping: Detected ${ iss_author }` )
386+
380387
// Rename title to contain Feature:
381388
// Make sure issue / pr title doesnt already contain a beginning title tag
382389
383-
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( ) ) )
390+
if ( iss_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( ) ) )
384391
{
385392
console.log( "Renaming Title" )
386393
console.log( `Old Title: .................. ${ iss_title }` )
@@ -503,10 +510,13 @@ jobs:
503510
console.log( `Adding Tag ....................... ${ urgn_lbl }` )
504511
console.log( "\n" )
505512
513+
if ( iss_author === `${{ env.BOT_NAME_DEPENDABOT }}` )
514+
core.info( `Skipping: Detected ${ iss_author }` )
515+
506516
// Rename title to contain Urgent:
507517
// Make sure issue / pr title doesnt already contain a beginning title tag
508518
509-
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( ) ) )
519+
if ( iss_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( ) ) )
510520
{
511521
console.log( "Renaming Title" )
512522
console.log( `Old Title: .................. ${ iss_title }` )
@@ -631,10 +641,13 @@ jobs:
631641
console.log( `Adding Tag .................... ${ road_lbl }` )
632642
console.log( "\n" )
633643
644+
if ( iss_author === `${{ env.BOT_NAME_DEPENDABOT }}` )
645+
core.info( `Skipping: Detected ${ iss_author }` )
646+
634647
// Rename title to contain Roadmap:
635648
// Make sure issue / pr title doesnt already contain a beginning title tag
636649
637-
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( ) ) )
650+
if ( iss_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( ) ) )
638651
{
639652
console.log( "Renaming Title" )
640653
console.log( `Old Title: .................. ${ iss_title }` )

0 commit comments

Comments
 (0)