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: ghevent/pullrequest.ts
+8-4Lines changed: 8 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -211,11 +211,15 @@ async function runReviewRoutine(
211
211
constreasonLines=[];
212
212
reasonLines.push(
213
213
`The change set did not pass the auto-approval rule [${repoCfg.ruleFile}](${ruleFileURL}) and it does not have the required number of approvals (${numApprovals} < ${requiredApprovals}).`,
214
-
"",
215
-
"The following users approved the PR, but do not have write access to the repository:",
216
214
);
217
-
for(constuofnonWriterApprovalUsers){
218
-
reasonLines.push(`- \`${u}\``);
215
+
if(nonWriterApprovalUsers.length>0){
216
+
reasonLines.push("");
217
+
reasonLines.push(
218
+
"The following users approved the PR, but do not have write access to the repository:",
0 commit comments