From 06cbd4663c3ca1f8dedd5e9817eb35089e8fb7ff Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Mon, 17 Mar 2025 12:57:56 -0700 Subject: [PATCH] ci: list existing labels for workflow --- .github/workflows/issues-scan.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/issues-scan.yml b/.github/workflows/issues-scan.yml index 912fc4b7..3de72725 100755 --- a/.github/workflows/issues-scan.yml +++ b/.github/workflows/issues-scan.yml @@ -307,17 +307,13 @@ jobs: const fs = require( 'fs' ); const escape_html = ( unsafe ) => unsafe.replace( /&/g, '&' ).replace( //g, '>' ).replace( /"/g, '"' ).replace( /'/g, ''' ); - const labels = context.payload.pull_request.labels; + const labels = []; - console.log(`-----------------------------------------------------------------------------------------------`) - console.log(` PR Labels ............ ${ labels }`) - console.log(`-----------------------------------------------------------------------------------------------`) + const files_List = `${{ steps.task_autocheck_changed_files_get.outputs.all_changed_files }}` || '' + const files_Array = files_List.split(',') + const branch_ref = `${ context.payload.pull_request.head.ref }` - const files_List = `${{ steps.task_autocheck_changed_files_get.outputs.all_changed_files }}` || ''; - const files_Array = files_List.split(','); - const branch_ref = `${ context.payload.pull_request.head.ref }`; - - let message = [ "\n
\n" ]; + let message = [ "\n
\n" ] message.push ( "## Automatic Self-Check - #" + context.issue.number + "\n" ); message.push ( `The details of our automated scan for your pull request are listed below. If our scan detected errors, they must be corrected before this pull request will be advanced to the review stage:\n` ); message.push ( "\n
\n\n---\n\n
\n\n" );