Skip to content

Commit 4cf8723

Browse files
snomiaoCopilot
andauthored
Update app/tasks/gh-design/gh-design.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 2004175 commit 4cf8723

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

app/tasks/gh-design/gh-design.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -273,8 +273,9 @@ export async function runGithubDesignTask() {
273273
reviewers: newReviewers,
274274
});
275275
} catch (err: any) {
276-
// GitHub returns 422 when the requested reviewer is the PR author
277-
// or otherwise cannot be added. Record the attempt to avoid
276+
// GitHub may return 422 when a requested reviewer cannot be added,
277+
// such as when they are not a collaborator, cannot be requested,
278+
// or have already been requested. Record the attempt to avoid
278279
// retrying on every 5-minute schedule run.
279280
if (err?.status !== 422) throw err;
280281
tlog(`Reviewer request rejected (422): ${err.message}`);

0 commit comments

Comments
 (0)