Skip to content

Commit d4bf3f4

Browse files
authored
ci: load-balance repo-assist PRs across compilation targets (#4589)
1 parent 1b67f03 commit d4bf3f4

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/repo-assist.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,16 @@ Update memory with labels applied and cursor position.
292292

293293
**Only attempt fixes you are confident about.** It is fine to work on issues you have previously commented on.
294294

295+
**Load balancing across targets**: each target has a different maintainer, so concentrating PRs on one target overloads that person. Before picking an issue to fix, list the open Repo Assist PRs and tally them by target scope:
296+
297+
```bash
298+
gh pr list --label repo-assist --state open --json title --jq '.[].title'
299+
```
300+
301+
For each title, identify its target from the Conventional Commits scope (e.g. `fix(python):`, `fix(js/ts):`) or the legacy bracket tag (`[Python]`, `[JS/TS]`). Targets are: `js/ts`, `python`, `rust`, `dart`, `beam`. If **any** target already has **more than 2** open PRs, do not open another PR scoped to that target this run — pick an issue for a less-represented target instead, even if it means skipping a higher-priority issue. Cross-target (`all`) and non-target-scoped fixes are always allowed.
302+
303+
If the load-balancing rule blocks every fixable issue this run (e.g. all targets are over the threshold, or the only fixable issues are scoped to overloaded targets), skip Task 3 and do Task 2 (Issue Investigation and Comment) instead. Note the substitution in the Task 11 run history entry.
304+
295305
1. Review issues labelled `bug`, `help wanted`, or `up-for-grabs`, plus any identified as fixable during investigation.
296306
2. For each fixable issue:
297307
a. Check memory — skip if you've already tried and the attempt is still open. Never create duplicate PRs.

0 commit comments

Comments
 (0)