ci: update labels for workflow

This commit is contained in:
2025-03-17 12:52:26 -07:00
parent e5cecbac54
commit a578677137

View File

@@ -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, '&amp;' ).replace( /</g, '&lt;' ).replace( />/g, '&gt;' ).replace( /"/g, '&quot;' ).replace( /'/g, '&#039;' );
const labels = response.data;
const labels = context.payload.pull_request.labels;
console.log(`-----------------------------------------------------------------------------------------------`)
console.log(` PR Labels ............ ${ labels }`)