Skip to content

Commit 31132c5

Browse files
committed
⬆️ Upgrade dependencies
1 parent 9a9a98f commit 31132c5

4 files changed

Lines changed: 100 additions & 77 deletions

File tree

dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 72 additions & 49 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@
3939
"@actions/github": "^5.1.1"
4040
},
4141
"devDependencies": {
42-
"@github/prettier-config": "^0.0.4",
43-
"@vercel/ncc": "^0.34.0",
42+
"@github/prettier-config": "^0.0.6",
43+
"@vercel/ncc": "^0.36.1",
4444
"eslint": "^8.35.0",
45-
"eslint-config-prettier": "^8.5.0",
45+
"eslint-config-prettier": "^8.6.0",
4646
"eslint-plugin-github": "^4.6.1",
47-
"husky": "^8.0.1",
48-
"rimraf": "^3.0.2"
47+
"husky": "^8.0.3",
48+
"rimraf": "^4.1.2"
4949
},
5050
"husky": {
5151
"hooks": {

utils/details.js

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -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
146146
Please 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
194194
Please 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 = ''
@@ -293,10 +293,10 @@ ${
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 {
@@ -309,16 +309,16 @@ ${
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

Comments
 (0)