mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-04 03:35:42 -04:00
ci: update labels for workflow
This commit is contained in:
12
.github/workflows/issues-scan.yml
vendored
12
.github/workflows/issues-scan.yml
vendored
@@ -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, '"' ).replace( /'/g, ''' );
|
||||
const labels = response.data;
|
||||
const labels = context.payload.pull_request.labels;
|
||||
|
||||
console.log(`-----------------------------------------------------------------------------------------------`)
|
||||
console.log(` PR Labels ............ ${ labels }`)
|
||||
|
||||
Reference in New Issue
Block a user