File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,7 @@ export async function getSupportedVersions() {
8888}
8989
9090export function getSummary ( report ) {
91- const { data } = report ;
92- const summaryList = data ?. relationships ?. summaries ?. data ;
91+ const summaryList = report ?. relationships ?. summaries ?. data ;
9392 if ( ! summaryList ?. length ) return ;
9493 const summaries = summaryList . filter ( ( summary ) => summary ?. attributes ?. category === 'team' ) ;
9594 if ( ! summaries ?. length ) return ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class UpdateSecurityRelease {
3232 } ) ;
3333 const req = new Request ( credentials ) ;
3434 for ( let i = 0 ; i < content . reports . length ; ++ i ) {
35- let report = content . reports [ i ] ;
35+ const report = content . reports [ i ] ;
3636 const { data } = await req . getReport ( report . id ) ;
3737 const reportSeverity = getReportSeverity ( data ) ;
3838 const summaryContent = getSummary ( data ) ;
@@ -42,7 +42,7 @@ export default class UpdateSecurityRelease {
4242 prURL = data . relationships . custom_field_values . data [ 0 ] . attributes . value ;
4343 }
4444
45- report = {
45+ content . reports [ i ] = {
4646 ...report ,
4747 title : data . attributes . title ,
4848 cveIds : data . attributes . cve_ids ,
You can’t perform that action at this time.
0 commit comments