From a578677137dfb461b14a106074c78f53da7f54f9 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Mon, 17 Mar 2025 12:52:26 -0700 Subject: [PATCH] ci: update labels for workflow --- .github/workflows/issues-scan.yml | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/.github/workflows/issues-scan.yml b/.github/workflows/issues-scan.yml index 690e6172..912fc4b7 100755 --- a/.github/workflows/issues-scan.yml +++ b/.github/workflows/issues-scan.yml @@ -305,19 +305,9 @@ jobs: console.log(` PR Context ............ ${ context }`) console.log(`-----------------------------------------------------------------------------------------------`) - const targetOwner = context.repo.owner; - const targetRepo = context.repo.repo; - - // Fetch labels from the source repository - const response = await github.rest.issues.listLabelsForRepo({ - owner: targetOwner, - repo: targetRepo, - }); - console.log("Labels fetched: ", response.data); - const fs = require( 'fs' ); const escape_html = ( unsafe ) => unsafe.replace( /&/g, '&' ).replace( //g, '>' ).replace( /"/g, '"' ).replace( /'/g, ''' ); - const labels = response.data; + const labels = context.payload.pull_request.labels; console.log(`-----------------------------------------------------------------------------------------------`) console.log(` PR Labels ............ ${ labels }`)