File tree 2 files changed +3
-4
lines changed
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() {
88
88
}
89
89
90
90
export function getSummary ( report ) {
91
- const { data } = report ;
92
- const summaryList = data ?. relationships ?. summaries ?. data ;
91
+ const summaryList = report ?. relationships ?. summaries ?. data ;
93
92
if ( ! summaryList ?. length ) return ;
94
93
const summaries = summaryList . filter ( ( summary ) => summary ?. attributes ?. category === 'team' ) ;
95
94
if ( ! summaries ?. length ) return ;
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export default class UpdateSecurityRelease {
32
32
} ) ;
33
33
const req = new Request ( credentials ) ;
34
34
for ( let i = 0 ; i < content . reports . length ; ++ i ) {
35
- let report = content . reports [ i ] ;
35
+ const report = content . reports [ i ] ;
36
36
const { data } = await req . getReport ( report . id ) ;
37
37
const reportSeverity = getReportSeverity ( data ) ;
38
38
const summaryContent = getSummary ( data ) ;
@@ -42,7 +42,7 @@ export default class UpdateSecurityRelease {
42
42
prURL = data . relationships . custom_field_values . data [ 0 ] . attributes . value ;
43
43
}
44
44
45
- report = {
45
+ content . reports [ i ] = {
46
46
...report ,
47
47
title : data . attributes . title ,
48
48
cveIds : data . attributes . cve_ids ,
You can’t perform that action at this time.
0 commit comments