File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -91,10 +91,10 @@ async function run() {
91
91
if ( file . startsWith ( 'specification/_doc_ids' ) ) continue
92
92
if ( file . startsWith ( 'specification/_json_spec' ) ) continue
93
93
if ( file . startsWith ( 'specification/node_modules' ) ) continue
94
- if ( file === 'specification/ tsconfig.json') continue
95
- if ( file === 'specification/ eslint.config.js') continue
96
- if ( file === 'specification/ package.json') continue
97
- if ( file === 'specification/ package-lock.json') continue
94
+ if ( file . endsWith ( ' tsconfig.json') ) continue
95
+ if ( file . endsWith ( ' eslint.config.js') ) continue
96
+ if ( file . endsWith ( ' package.json') ) continue
97
+ if ( file . endsWith ( ' package-lock.json') ) continue
98
98
if ( getApi ( file ) . endsWith ( '_types' ) ) {
99
99
const apis = specification . endpoints
100
100
. filter ( endpoint => endpoint . name . split ( '.' ) . filter ( s => ! privateNames . includes ( s ) ) [ 0 ] === getApi ( file ) . split ( '.' ) [ 0 ] )
@@ -161,6 +161,8 @@ function buildTableLine (api, report) {
161
161
}
162
162
163
163
function generateStatus ( report ) {
164
+ if ( report . diagnostics == null ) return 'n/a'
165
+
164
166
if ( ! report . diagnostics . hasRequestType || ! report . diagnostics . hasResponseType ) {
165
167
return ':orange_circle:'
166
168
}
You can’t perform that action at this time.
0 commit comments