File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
browserstack-report-action Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -38237,7 +38237,6 @@ class ReportProcessor {
3823738237 addToSummaryReport = `<html>${addToSummaryReport}</html>`;
3823838238 addToSummaryReport = addToSummaryReport.replace(/[\u201C\u201D]/g, '"'); // Replace smart quotes with regular quotes
3823938239 addToSummaryReport = addToSummaryReport.replace(/<\/?tbody>/gi, ''); // Remove tbody tags
38240- core.info(`Report HTML: ${addToSummaryReport}`);
3824138240 await summary.addRaw(addToSummaryReport, false);
3824238241 } else {
3824338242 await summary.addRaw('⚠️ No report content available', true);
@@ -38286,11 +38285,12 @@ class ReportService {
3828638285 Authorization: this.authHeader,
3828738286 },
3828838287 });
38289- core.info(`Response from report API: ${JSON.stringify(response.data)}`);
38288+
3829038289 if (response.status < 200 || response.status > 299) {
3829138290 core.info(`Error fetching report: ${response.status}`);
3829238291 return ReportService.errorResponse(response?.data?.errorMessage || "Something Went Wrong while Fetching report");
3829338292 }
38293+ core.info(`Response from report API: ${response?.data?.reportStatus}`);
3829438294 return response.data;
3829538295 } catch (error) {
3829638296 core.info(`Error fetching report: ${error.message}`);
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ class ReportProcessor {
1616 addToSummaryReport = `<html>${ addToSummaryReport } </html>` ;
1717 addToSummaryReport = addToSummaryReport . replace ( / [ \u201C \u201D ] / g, '"' ) ; // Replace smart quotes with regular quotes
1818 addToSummaryReport = addToSummaryReport . replace ( / < \/ ? t b o d y > / gi, '' ) ; // Remove tbody tags
19- core . info ( `Report HTML: ${ addToSummaryReport } ` ) ;
2019 await summary . addRaw ( addToSummaryReport , false ) ;
2120 } else {
2221 await summary . addRaw ( '⚠️ No report content available' , true ) ;
Original file line number Diff line number Diff line change @@ -16,11 +16,12 @@ class ReportService {
1616 Authorization : this . authHeader ,
1717 } ,
1818 } ) ;
19- core . info ( `Response from report API: ${ JSON . stringify ( response . data ) } ` ) ;
19+
2020 if ( response . status < 200 || response . status > 299 ) {
2121 core . info ( `Error fetching report: ${ response . status } ` ) ;
2222 return ReportService . errorResponse ( response ?. data ?. errorMessage || "Something Went Wrong while Fetching report" ) ;
2323 }
24+ core . info ( `Response from report API: ${ response ?. data ?. reportStatus } ` ) ;
2425 return response . data ;
2526 } catch ( error ) {
2627 core . info ( `Error fetching report: ${ error . message } ` ) ;
You can’t perform that action at this time.
0 commit comments