Skip to content

Commit db5a55f

Browse files
committed
Debugging the validate-pr script to find an issue
1 parent be7bb77 commit db5a55f

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/validate-pr/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ async function run() {
9595
if (file.endsWith('eslint.config.js')) continue
9696
if (file.endsWith('package.json')) continue
9797
if (file.endsWith('package-lock.json')) continue
98+
console.log(file)
9899
if (getApi(file).endsWith('_types')) {
99100
const apis = specification.endpoints
100101
.filter(endpoint => endpoint.name.split('.').filter(s => !privateNames.includes(s))[0] === getApi(file).split('.')[0])
@@ -161,8 +162,6 @@ function buildTableLine (api, report) {
161162
}
162163

163164
function generateStatus (report) {
164-
if (report.diagnostics == null) return 'n/a'
165-
166165
if (!report.diagnostics.hasRequestType || !report.diagnostics.hasResponseType) {
167166
return ':orange_circle:'
168167
}

0 commit comments

Comments
 (0)