@@ -89,19 +89,19 @@ class ActionDetails {
8989 payload : {
9090 pull_request : {
9191 base : { ref : base } ,
92- head : { ref : head }
93- }
94- }
95- }
92+ head : { ref : head } ,
93+ } ,
94+ } ,
95+ } ,
9696 } = this
9797
9898 // get the `git diff`
9999 const {
100- data : { files}
100+ data : { files} ,
101101 } = await octokit . rest . repos . compareCommitsWithBasehead ( {
102102 owner,
103103 repo,
104- basehead : `${ base } ...${ head } `
104+ basehead : `${ base } ...${ head } ` ,
105105 } )
106106
107107 const actions = [ ]
@@ -144,7 +144,7 @@ class ActionDetails {
144144**This will add all GitHub Action repositories owned by https://github.com/${ owner } to the allow list!**
145145
146146Please make sure this is intended by providing a business reason via comment below!` ,
147- position
147+ position ,
148148 )
149149 continue
150150 }
@@ -154,15 +154,15 @@ Please make sure this is intended by providing a business reason via comment bel
154154 await this . search . rest . repos . getContent ( {
155155 owner,
156156 repo,
157- path : 'action.yml'
157+ path : 'action.yml' ,
158158 } )
159159
160160 const {
161161 search : {
162- edges : [ result ]
163- }
162+ edges : [ result ] ,
163+ } ,
164164 } = await this . search . graphql ( searchQuery , {
165- search : `repo:${ owner } /${ repo } fork:false`
165+ search : `repo:${ owner } /${ repo } fork:false` ,
166166 } )
167167
168168 const details = {
@@ -180,7 +180,7 @@ Please make sure this is intended by providing a business reason via comment bel
180180 topics : result . node . topics . nodes . map ( item => item . topic . name ) ,
181181
182182 // flatten vulnerability alerts count
183- vulnerabilityAlerts : result . node . vulnerabilityAlerts . totalCount
183+ vulnerabilityAlerts : result . node . vulnerabilityAlerts . totalCount ,
184184 }
185185
186186 const md = this . getMarkdown ( details )
@@ -192,7 +192,7 @@ Please make sure this is intended by providing a business reason via comment bel
192192:link: https://github.com/${ owner } /${ repo }
193193
194194Please delete \`${ owner } /${ repo } \` from \`${ this . allowList } \`!` ,
195- position
195+ position ,
196196 )
197197 }
198198 }
@@ -218,7 +218,7 @@ Please delete \`${owner}/${repo}\` from \`${this.allowList}\`!`,
218218 securityPolicyUrl,
219219 vulnerabilityAlerts,
220220 owner,
221- stars
221+ stars,
222222 } = details
223223
224224 let versionLink = ''
293293 payload : {
294294 number : pull_number ,
295295 pull_request : {
296- head : { sha : commit_id }
297- }
298- }
299- }
296+ head : { sha : commit_id } ,
297+ } ,
298+ } ,
299+ } ,
300300 } = this
301301
302302 try {
309309 {
310310 path,
311311 body,
312- position
313- }
314- ]
312+ position,
313+ } ,
314+ ] ,
315315 } )
316316 } catch ( error ) {
317317 // add a regular comment if we can't add a review comment
318318 await octokit . rest . issues . createComment ( {
319319 ...this . context . repo ,
320320 issue_number : pull_number ,
321- body
321+ body,
322322 } )
323323 }
324324 }
0 commit comments