Skip to content

Commit 65d8898

Browse files
committed
update repo assist
1 parent 836a4fb commit 65d8898

File tree

3 files changed

+46
-26
lines changed

3 files changed

+46
-26
lines changed

.github/aw/actions-lock.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
"repo": "github/gh-aw/actions/setup",
1010
"version": "v0.55.0",
1111
"sha": "e211c855a20aa6cf9297b411466e1c382a8686db"
12+
},
13+
"github/gh-aw/actions/setup@v0.56.0": {
14+
"repo": "github/gh-aw/actions/setup",
15+
"version": "v0.56.0",
16+
"sha": "046e81c42fe2a9d91f47596660fcc69f48f5c70a"
1217
}
1318
}
1419
}

.github/workflows/repo-assist.lock.yml

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/repo-assist.md

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ safe-outputs:
5858
add-labels:
5959
allowed: [bug, enhancement, "help wanted", "good first issue", "spam", "off topic", documentation, question, duplicate, wontfix, "needs triage", "needs investigation", "breaking change", performance, security, refactor]
6060
max: 30
61-
target: "*"
61+
target: "*"
6262
remove-labels:
6363
allowed: [bug, enhancement, "help wanted", "good first issue", "spam", "off topic", documentation, question, duplicate, wontfix, "needs triage", "needs investigation", "breaking change", performance, security, refactor]
6464
max: 5
65-
target: "*"
65+
target: "*"
6666

6767
tools:
6868
web-fetch:
@@ -98,10 +98,23 @@ steps:
9898
repo_assist_prs = sum(1 for p in prs if p['title'].startswith('[Repo Assist]'))
9999
other_prs = sum(1 for p in prs if not p['title'].startswith('[Repo Assist]'))
100100
101+
task_names = {
102+
1: 'Issue Labelling',
103+
2: 'Issue Investigation and Comment',
104+
3: 'Issue Investigation and Fix',
105+
4: 'Engineering Investments',
106+
5: 'Coding Improvements',
107+
6: 'Maintain Repo Assist PRs',
108+
7: 'Stale PR Nudges',
109+
8: 'Performance Improvements',
110+
9: 'Testing Improvements',
111+
10: 'Take the Repository Forward',
112+
}
113+
101114
weights = {
102-
1: 1 + unlabelled,
103-
2: 3 + 0.3 * open_issues,
104-
3: 3 + 0.3 * open_issues,
115+
1: 1 + 3 * unlabelled,
116+
2: 3 + 1 * open_issues,
117+
3: 3 + 0.7 * open_issues,
105118
4: 5 + 0.2 * open_issues,
106119
5: 5 + 0.1 * open_issues,
107120
6: float(repo_assist_prs),
@@ -136,21 +149,22 @@ steps:
136149
print('Task weights:')
137150
for t, w in weights.items():
138151
tag = ' <-- SELECTED' if t in chosen else ''
139-
print(f' Task {t:2d}: weight {w:6.1f}{tag}')
152+
print(f' Task {t:2d} ({task_names[t]}): weight {w:6.1f}{tag}')
140153
print()
141-
print(f'Selected tasks for this run: Task {chosen[0]} and Task {chosen[1]}')
154+
print(f'Selected tasks for this run: Task {chosen[0]} ({task_names[chosen[0]]}) and Task {chosen[1]} ({task_names[chosen[1]]})')
142155
143156
result = {
144157
'open_issues': open_issues, 'unlabelled_issues': unlabelled,
145158
'repo_assist_prs': repo_assist_prs, 'other_prs': other_prs,
159+
'task_names': task_names,
146160
'weights': {str(k): round(v, 2) for k, v in weights.items()},
147161
'selected_tasks': chosen,
148162
}
149163
with open('/tmp/gh-aw/task_selection.json', 'w') as f:
150164
json.dump(result, f, indent=2)
151165
EOF
152166
153-
source: githubnext/agentics/workflows/repo-assist.md@4ee2ca4faa30612b9ed0d207472068f5efc9ecf3
167+
source: githubnext/agentics/workflows/repo-assist.md@5029c9574c7bd2baa70aab6c8de9ea09edf11803
154168
---
155169

156170
# Repo Assist
@@ -194,9 +208,10 @@ Read memory at the **start** of every run; update it at the **end**.
194208

195209
Each run, the deterministic pre-step collects live repo data (open issue count, unlabelled issue count, open Repo Assist PRs, other open PRs), computes a **weighted probability** for each task, and selects **two tasks** for this run using a seeded random draw. The weights and selected tasks are printed in the workflow logs. You will find the selection in `/tmp/gh-aw/task_selection.json`.
196210

197-
**Read the task selection**: at the start of your run, read `/tmp/gh-aw/task_selection.json` and confirm the two selected tasks in your opening reasoning. Execute **those two tasks** (plus the mandatory Task 11).
211+
**Read the task selection**: at the start of your run, read `/tmp/gh-aw/task_selection.json` and confirm the two selected tasks in your opening reasoning. Execute **those two tasks** (plus the mandatory Task 11). If there's really nothing to do for a selected task, do not force yourself to do it - try any other different task instead that looks most useful.
198212

199213
The weighting scheme naturally adapts to repo state:
214+
200215
- When unlabelled issues pile up, Task 1 (labelling) dominates.
201216
- When there are many open issues, Tasks 2 and 3 (commenting and fixing) get more weight.
202217
- As the backlog clears, Tasks 4–10 (engineering, improvements, nudges, forward progress) draw more evenly.
@@ -296,7 +311,7 @@ Maintain a single open issue titled `[Repo Assist] Monthly Activity {YYYY}-{MM}`
296311

297312
## Suggested Actions for Maintainer
298313

299-
**Comprehensive list** of all pending actions requiring maintainer attention (excludes items already actioned and checked off).
314+
**Comprehensive list** of all pending actions requiring maintainer attention (excludes items already actioned and checked off).
300315
- Reread the issue you're updating before you update it - there may be new checkbox adjustments since your last update that require you to adjust the suggested actions.
301316
- List **all** the comments, PRs, and issues that need attention
302317
- Exclude **all** items that have either

0 commit comments

Comments
 (0)