You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/validate-pr/index.js
+15-13Lines changed: 15 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -107,20 +107,22 @@ async function run () {
107
107
return0
108
108
})
109
109
110
-
letcomment=`Following you can find the validation results for the API${table.length===1 ? '' : 's'} you have changed.\n\n`
111
-
comment+='| API | Status | Request | Response |\n'
112
-
comment+='| --- | --- | --- | --- |\n'
113
-
for(constlineof[...newSet(table)]){
114
-
comment+=line
115
-
}
116
-
comment+=`\nYou can validate ${table.length===1 ? 'this' : 'these'} API${table.length===1 ? '' : 's'} yourself by using the ${tick}make validate${tick} target.\n`
110
+
if(table.length>0){
111
+
letcomment=`Following you can find the validation results for the API${table.length===1 ? '' : 's'} you have changed.\n\n`
112
+
comment+='| API | Status | Request | Response |\n'
113
+
comment+='| --- | --- | --- | --- |\n'
114
+
for(constlineof[...newSet(table)]){
115
+
comment+=line
116
+
}
117
+
comment+=`\nYou can validate ${table.length===1 ? 'this' : 'these'} API${table.length===1 ? '' : 's'} yourself by using the ${tick}make validate${tick} target.\n`
0 commit comments