We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc244de commit 1445e3fCopy full SHA for 1445e3f
1 file changed
.github/workflows/pr-reviewer.yml
@@ -64,6 +64,18 @@ jobs:
64
core.info(`PR title : ${title}`);
65
core.info(`Raw scope: ${rawScope || '(none)'}`);
66
67
+ // ── Skip if reviewers already assigned ──────────────────
68
+ const pr = await github.rest.pulls.get({
69
+ owner: context.repo.owner,
70
+ repo: context.repo.repo,
71
+ pull_number: context.payload.pull_request.number,
72
+ });
73
+ const existing = pr.data.requested_reviewers || [];
74
+ if (existing.length > 0) {
75
+ core.info(`Reviewers already assigned (${existing.map(r => r.login).join(', ')}). Skipping.`);
76
+ return;
77
+ }
78
+
79
// ── Determine reviewers ───────────────────────────────────
80
// 1. Split by comma to support multi-scope: feat(vm,rpc): ...
81
// 2. Normalize each scope token
0 commit comments