We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2004175 commit 4cf8723Copy full SHA for 4cf8723
1 file changed
app/tasks/gh-design/gh-design.ts
@@ -273,8 +273,9 @@ export async function runGithubDesignTask() {
273
reviewers: newReviewers,
274
});
275
} 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
+ // GitHub may return 422 when a requested reviewer cannot be added,
+ // such as when they are not a collaborator, cannot be requested,
278
+ // or have already been requested. Record the attempt to avoid
279
// retrying on every 5-minute schedule run.
280
if (err?.status !== 422) throw err;
281
tlog(`Reviewer request rejected (422): ${err.message}`);
0 commit comments